mirror of
https://github.com/bpatrik/pigallery2.git
synced 2024-12-21 01:22:08 +02:00
Update build.yml
use action instead of docker image for mariadb
This commit is contained in:
parent
072f65a3d9
commit
7b7e980ddc
20
.github/workflows/build.yml
vendored
20
.github/workflows/build.yml
vendored
@ -17,21 +17,13 @@ jobs:
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [18.x]
|
||||
|
||||
services:
|
||||
mariadb:
|
||||
image: mariadb:lts
|
||||
ports:
|
||||
- 3306
|
||||
env:
|
||||
MYSQL_USER: user
|
||||
MYSQL_PASSWORD: password
|
||||
MYSQL_DATABASE: pigallery_test
|
||||
MYSQL_ROOT_PASSWORD: password
|
||||
options: --health-cmd="mysqladmin ping" --health-interval=5s --health-timeout=2s --health-retries=3
|
||||
|
||||
|
||||
steps:
|
||||
- uses: getong/mariadb-action@v1.11
|
||||
with:
|
||||
mysql database: 'pigallery_test'
|
||||
mysql root password: 'password'
|
||||
mysql user: 'user'
|
||||
mysql password: 'password'
|
||||
- uses: actions/checkout@v4
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v4
|
||||
|
Loading…
Reference in New Issue
Block a user