mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-06-08 11:11:02 +02:00
Fix the Codecov token not being usable in the unit tests GitHub Actions workflow
The job's environment must be `code-coverage` before it has access to the `CODECOV_TOKEN` secret that's required for pushing coverage data to Codecov. Without it we get an HTTP 400 response with a `Token required because branch is protected` message if it's run from `master`. Fixes f932a58d.
This commit is contained in:
parent
f45d507302
commit
142c581362
1
.github/workflows/unit_tests.yml
vendored
1
.github/workflows/unit_tests.yml
vendored
@ -35,6 +35,7 @@ jobs:
|
||||
os: [windows-latest, ubuntu-latest]
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
environment: code-coverage
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user