Skip to content

Commit

Permalink
CI: modify node.js.yml to set up DB
Browse files Browse the repository at this point in the history
  • Loading branch information
sShaAanGg committed Oct 18, 2023
1 parent b6c7089 commit 78feacb
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ name: Node.js CI and Playwright Tests

on:
workflow_dispatch:
# schedule:
# # Test 3 times a day
# - cron: '0 */8 * * *'
schedule:
# Test 3 times a day
- cron: '0 */8 * * *'

jobs:
build:
Expand All @@ -33,6 +33,17 @@ jobs:
run: |
npm install
npm run serve &
- uses: mirromutth/mysql-action@v1.1
with:
host port: 3800 # Optional, default value is 3306. The port of host
container port: 3307 # Optional, default value is 3306. The port of container
character set server: 'utf8' # Optional, default value is 'utf8mb4'. The '--character-set-server' option for mysqld
collation server: 'utf8_general_ci' # Optional, default value is 'utf8mb4_general_ci'. The '--collation-server' option for mysqld
mysql version: '8.0' # Optional, default value is "latest". The version of the MySQL
mysql database: 'library' # Optional, default value is "test". The specified database which will be create
mysql root password: ${{ secrets.DB_PASS }} # Required if "mysql user" is empty, default is empty. The root superuser password
# mysql user: 'developer' # Required if "mysql root password" is empty, default is empty. The superuser for the specified database. Can use secrets, too
# mysql password: ${{ secrets.DatabasePassword }} # Required if "mysql user" exists. The password for the "mysql user"
# - run: npm ci
# - run: npm run build --if-present
# - run: npm test
Expand Down

0 comments on commit 78feacb

Please sign in to comment.