diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 70e88a0..fd36fd4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 @@ -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