From dcbc8ab95fb64a0830902348a96f9df805cb07de Mon Sep 17 00:00:00 2001 From: Tom Tseng Date: Thu, 19 Oct 2023 19:33:40 +0800 Subject: [PATCH] fix node.js.yml --- .github/workflows/node.js.yml | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 89a484fae..ba39bd148 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -28,20 +28,24 @@ jobs: # Opens tcp port 3306 on the host and service container - 3306:3306 steps: + # Downloads a copy of the code in your repository before running CI tests + - name: Check out repository code + uses: actions/checkout@v4 + - name: Connect to mySQL # Runs a script that creates a mySQL table, populates # the table with data, and then retrieves the data - run: echo "Connected to mySQL" + run: echo "Connected to mySQL" # Environment variables used by the script to create # a new mySQL table. - env: - DB_NAME: 'library' - DB_USER: 'root' - DB_PASS: ${{ secrets.DB_PASS }} - # The hostname used to communicate with the mySQL service container - DB_HOST: localhost - # The default mySQL port - DB_PORT: 3306 + env: + DB_NAME: 'library' + DB_USER: 'root' + DB_PASS: ${{ secrets.DB_PASS }} + # The hostname used to communicate with the mySQL service container + DB_HOST: localhost + # The default mySQL port + DB_PORT: 3306 build: runs-on: ubuntu-latest