mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-06 19:47:00 +03:00
Use env vars in workflow
This commit is contained in:
5
.github/workflows/test.yaml
vendored
5
.github/workflows/test.yaml
vendored
@@ -46,6 +46,9 @@ jobs:
|
|||||||
${{ github.workspace }}/node_modules
|
${{ github.workspace }}/node_modules
|
||||||
- if: steps.cache.outputs.cache-hit != 'true'
|
- if: steps.cache.outputs.cache-hit != 'true'
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
env:
|
||||||
|
youTubeKeys_visitorData: ${{ secrets.YOUTUBEKEYS_VISITORDATA }}
|
||||||
|
youTubeKeys_poToken: ${{ secrets.YOUTUBEKEYS_POTOKEN }}
|
||||||
- name: Run SQLite Tests
|
- name: Run SQLite Tests
|
||||||
timeout-minutes: 5
|
timeout-minutes: 5
|
||||||
run: npx nyc --silent npm test
|
run: npx nyc --silent npm test
|
||||||
@@ -83,6 +86,8 @@ jobs:
|
|||||||
- name: Run Postgres Tests
|
- name: Run Postgres Tests
|
||||||
env:
|
env:
|
||||||
TEST_POSTGRES: true
|
TEST_POSTGRES: true
|
||||||
|
youTubeKeys_visitorData: ${{ secrets.YOUTUBEKEYS_VISITORDATA }}
|
||||||
|
youTubeKeys_poToken: ${{ secrets.YOUTUBEKEYS_POTOKEN }}
|
||||||
timeout-minutes: 5
|
timeout-minutes: 5
|
||||||
run: npx nyc --silent npm test
|
run: npx nyc --silent npm test
|
||||||
- name: cache nyc output
|
- name: cache nyc output
|
||||||
|
|||||||
Reference in New Issue
Block a user