Skip to content

Commit 02341be

Browse files
shift env secrets
1 parent 660f9a8 commit 02341be

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

.github/workflows/node.js.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,15 @@ jobs:
2727
with:
2828
node-version: ${{ matrix.node-version }}
2929
cache: 'npm'
30+
- run: npm ci
31+
- run: npm run build --if-present
32+
- name: Start server
33+
env:
34+
USER_DB_USER: ${{secrets.USER_DB_USER}}
35+
USER_DB_PW: ${{secrets.USER_DB_PW}}
36+
USER_DB_URL: ${{secrets.USER_DB_URL}}
37+
run: npm start
38+
- name: Run test suites
3039
env:
3140
MYSQL_TEST_URL: ${{secrets.MYSQL_TEST_URL}}
3241
MYSQL_TEST_USERNAME: ${{secrets.MYSQL_TEST_USERNAME}}
@@ -36,15 +45,7 @@ jobs:
3645
PG_TEST_PW: ${{secrets.PG_TEST_PW}}
3746
TEST_USER_EMAIL: ${{secrets.TEST_USER_EMAIL}}
3847
TEST_USER_PW: ${{secrets.TEST_USER_PW}}
39-
USER_DB_USER: ${{secrets.USER_DB_USER}}
40-
USER_DB_PW: ${{secrets.USER_DB_PW}}
41-
USER_DB_URL: ${{secrets.USER_DB_URL}}
42-
SSL_KEY: ${{secrets.SSL_KEY}}
43-
SSL_CERT: ${{secrets.SSL_CERT}}
44-
- run: npm ci
45-
- run: npm run build --if-present
46-
- run: npm start
47-
- run: npm test
48+
run: npm test
4849
- name: Archive production artifacts
4950
uses: actions/upload-artifact@v3
5051
with:

0 commit comments

Comments
 (0)