Skip to content

Commit

Permalink
fix node.js.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sShaAanGg committed Oct 19, 2023
1 parent 1f3975f commit f550dd8
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit f550dd8

Please sign in to comment.