Revert "try different strategy to skip coverage on forks"
This reverts commit cae64ae5a4
.
This commit is contained in:
parent
cae64ae5a4
commit
06574c2708
|
@ -15,9 +15,6 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
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
|
- uses: actions/checkout@v4
|
||||||
- name: Clone spacebar server
|
- name: Clone spacebar server
|
||||||
run: |
|
run: |
|
||||||
|
@ -49,7 +46,7 @@ jobs:
|
||||||
cargo test --verbose --all-features
|
cargo test --verbose --all-features
|
||||||
fi
|
fi
|
||||||
- name: Upload coverage for Linux
|
- name: Upload coverage for Linux
|
||||||
if: steps.cov-flag.outputs.flag == 'true'
|
if: ${{ secrets.COVERALLS_REPO_TOKEN }}
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: coverage-linux
|
name: coverage-linux
|
||||||
|
@ -57,9 +54,6 @@ jobs:
|
||||||
macos:
|
macos:
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
steps:
|
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
|
- uses: actions/checkout@v4
|
||||||
- name: Clone spacebar server
|
- name: Clone spacebar server
|
||||||
run: |
|
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"
|
SAFARIDRIVER=$(which safaridriver) CHROMEDRIVER=$(which chromedriver) GECKODRIVER=$(which geckodriver) cargo test --target wasm32-unknown-unknown --no-default-features --features="client, rt"
|
||||||
fi
|
fi
|
||||||
- name: Upload coverage for macOS
|
- name: Upload coverage for macOS
|
||||||
if: steps.cov-flag.outputs.flag == 'true'
|
if: ${{ secrets.COVERALLS_REPO_TOKEN }}
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: coverage-macos
|
name: coverage-macos
|
||||||
|
@ -100,7 +94,7 @@ jobs:
|
||||||
|
|
||||||
upload-coverage:
|
upload-coverage:
|
||||||
needs: [linux, macos]
|
needs: [linux, macos]
|
||||||
if: needs.linux.outputs.flag == 'true' && needs.macos.outputs.flag == 'true'
|
if: ${{ secrets.COVERALLS_REPO_TOKEN }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Download all workflow run artifacts
|
- name: Download all workflow run artifacts
|
||||||
|
|
Loading…
Reference in New Issue