Просмотр исходного кода

[Build] Set up single upload of test coverage

Slava Barinov 5 лет назад
Родитель
Сommit
2d107be22a
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      .github/workflows/rust.yml

+ 3 - 0
.github/workflows/rust.yml

@@ -44,6 +44,7 @@ jobs:
 
       - name: Run cargo-tarpaulin
         uses: actions-rs/tarpaulin@v0.1
+        if: ${{ matrix.rust == 'stable' }}
         with:
           version: '0.15.0'
           out-type: Xml
@@ -52,11 +53,13 @@ jobs:
 
       - name: Upload to codecov.io
         uses: codecov/codecov-action@v1.0.2
+        if: ${{ matrix.rust == 'stable' }}
         with:
           token: ${{ secrets.CODECOV_SECRET }}
 
       - name: Archive code coverage results
         uses: actions/upload-artifact@v1
+        if: ${{ matrix.rust == 'stable' }}
         with:
           name: code-coverage-report
           path: cobertura.xml