■ ■ ■ ■ ■ ■
.github/workflows/testing.yml
| skipped 208 lines |
209 | 209 | | with: |
210 | 210 | | github-token: ${{ secrets.GITHUB_TOKEN }} |
211 | 211 | | path-to-lcov: ./nodejs/coverage/lcov.info |
| 212 | + | parallel: true |
212 | 213 | | base-path: ./nodejs |
213 | 214 | | |
| 215 | + | coverage-rust: |
| 216 | + | needs: test-rust |
| 217 | + | strategy: |
| 218 | + | matrix: |
| 219 | + | os: |
| 220 | + | - ubuntu-latest |
| 221 | + | runs-on: ${{ matrix.os }} |
| 222 | + | defaults: |
| 223 | + | run: |
| 224 | + | working-directory: ./rust |
| 225 | + | |
| 226 | + | steps: |
| 227 | + | - uses: actions/checkout@v2 |
| 228 | + | |
| 229 | + | - uses: actions-rs/toolchain@v1 |
| 230 | + | with: |
| 231 | + | toolchain: stable |
| 232 | + | |
| 233 | + | - name: Run Makefile |
| 234 | + | run: make |
| 235 | + | |
| 236 | + | - name: Install Rust |
| 237 | + | run: rustup toolchain install stable --component llvm-tools-preview |
| 238 | + | |
| 239 | + | - name: Install cargo-llvm-cov |
| 240 | + | uses: taiki-e/install-action@cargo-llvm-cov |
| 241 | + | |
| 242 | + | - name: Generate code coverage |
| 243 | + | run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info |
| 244 | + | |
| 245 | + | - name: Print last few lines of lcov.info |
| 246 | + | run: tail ./lcov.info |
| 247 | + | |
| 248 | + | - name: Upload to coveralls |
| 249 | + | uses: coverallsapp/github-action@master |
| 250 | + | with: |
| 251 | + | github-token: ${{ secrets.GITHUB_TOKEN }} |
| 252 | + | path-to-lcov: ./rust/lcov.info |
| 253 | + | parallel: true |
| 254 | + | base-path: ./rust |
| 255 | + | |
| 256 | + | coverage-finish: |
| 257 | + | needs: [coverage-nodejs, coverage-rust] |
| 258 | + | steps: |
| 259 | + | - name: Coveralls Parallel Build Finished |
| 260 | + | uses: coverallsapp/[email protected] |
| 261 | + | with: |
| 262 | + | github-token: ${{ secrets.github_token }} |
| 263 | + | parallel-finished: true |
| 264 | + | |