From 07c8c164963625bcfc725a8924fc5e3ce8b2215a Mon Sep 17 00:00:00 2001 From: bitfl0wer Date: Mon, 20 Nov 2023 13:33:40 +0100 Subject: [PATCH] Revert "try different strategy to skip coverage on forks" This reverts commit fb46ab83ac08cc1040153ce4dec9386387379db2. --- .github/workflows/build_and_test.yml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 05b0acb..d523165 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -15,9 +15,6 @@ jobs: runs-on: ubuntu-latest steps: - - name: Set coverage flag - id: cov-flag - run: echo ::set-output name=flag::${{ github.event.pull_request.head.repo.fork == false }} - uses: actions/checkout@v4 - name: Clone spacebar server run: | @@ -49,7 +46,7 @@ jobs: cargo test --verbose --all-features fi - name: Upload coverage for Linux - if: steps.cov-flag.outputs.flag == 'true' + if: ${{ secrets.COVERALLS_REPO_TOKEN }} uses: actions/upload-artifact@v2 with: name: coverage-linux @@ -57,9 +54,6 @@ jobs: macos: runs-on: macos-latest steps: - - name: Set coverage flag - id: cov-flag - run: echo ::set-output name=flag::${{ github.event.pull_request.head.repo.fork == false }} - uses: actions/checkout@v4 - name: Clone spacebar server run: | @@ -92,7 +86,7 @@ jobs: SAFARIDRIVER=$(which safaridriver) CHROMEDRIVER=$(which chromedriver) GECKODRIVER=$(which geckodriver) cargo test --target wasm32-unknown-unknown --no-default-features --features="client, rt" fi - name: Upload coverage for macOS - if: steps.cov-flag.outputs.flag == 'true' + if: ${{ secrets.COVERALLS_REPO_TOKEN }} uses: actions/upload-artifact@v2 with: name: coverage-macos @@ -100,7 +94,7 @@ jobs: upload-coverage: needs: [linux, macos] - if: needs.linux.outputs.flag == 'true' && needs.macos.outputs.flag == 'true' + if: ${{ secrets.COVERALLS_REPO_TOKEN }} runs-on: ubuntu-latest steps: - name: Download all workflow run artifacts