Skip to content

Commit

Permalink
Use environment variables again.
Browse files Browse the repository at this point in the history
  • Loading branch information
Carifio24 committed Sep 29, 2024
1 parent d6d0104 commit 8ee9661
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20.10.0'
node-version: '18.18.0'

- name: Install modules
run: npm install
Expand All @@ -36,10 +36,12 @@ jobs:
sudo mysql -h 127.0.0.1 -uroot -proot < setup.sql
- name: Test
# This is just the default settings for GH Actions MySQL
# Nothing secret here aside from the hashed API key
env:
TEST_DB_HOSTNAME: ${{ secrets.TEST_DB_HOSTNAME }}
TEST_DB_USERNAME: ${{ secrets.TEST_DB_USERNAME }}
TEST_DB_PASSWORD: ${{ secrets.TEST_DB_PASSWORD }}
DB_TEST_HOSTNAME: 127.0.0.1
DB_TEST_USERNAME: root
DB_TEST_PASSWORD: root
HASHED_API_KEY: ${{ secrets.HASHED_API_KEY }}
run: npm run test

Expand Down

0 comments on commit 8ee9661

Please sign in to comment.