Skip to content

Commit 51961c6

Browse files
Pass database configuration to actions
1 parent 4bd3682 commit 51961c6

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.github/workflows/tests.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
name: "CI/CD Tests"
1+
name: 'CI/CD Tests'
22
on: push
33

44
jobs:
55
app-tests:
6-
name: "Package Tests"
6+
name: 'Package Tests'
77
timeout-minutes: 15
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/checkout@v3
1111
- uses: actions/setup-node@v3
1212
with:
13-
node-version: "18.x"
13+
node-version: '18.x'
1414

1515
- name: Setup Dependencies
1616
run: |
@@ -23,13 +23,11 @@ jobs:
2323

2424
- name: Jest Tests
2525
env:
26-
DATABASE_USERNAME: ${{ secrets.DATABASE_USERNAME }}
27-
DATABASE_PASSWORD: ${{ secrets.DATABASE_PASSWORD }}
28-
DATABASE_HOSTNAME: ${{ secrets.DATABASE_HOSTNAME }}
29-
DATABASE_DATABASE: ${{ secrets.DATABASE_DATABASE }}
26+
CHINOOK_DATABASE_URL: ${{ secrets.CHINOOK_DATABASE_URL }}
27+
TESTING_DATABASE_URL: ${{ secrets.TESTING_DATABASE_URL }}
3028
run: npm test
3129

3230
- name: Upload Code Coverage
3331
uses: codecov/codecov-action@v3
3432
env:
35-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
33+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)