diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 26ff3e23f..89a484fae 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -27,6 +27,21 @@ jobs: ports: # Opens tcp port 3306 on the host and service container - 3306:3306 + steps: + - 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" + # 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 build: runs-on: ubuntu-latest @@ -45,21 +60,6 @@ jobs: # - name: Install dependencies # run: npm ci - - 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" - # 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 - # - uses: mirromutth/mysql-action@v1.1 # with: # host port: 3800 # Optional, default value is 3306. The port of host