-
Notifications
You must be signed in to change notification settings - Fork 37
43 lines (40 loc) · 1.07 KB
/
mysql.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Mysql 8.0
on:
push:
branches:
- master
pull_request:
jobs:
tests:
runs-on: ubuntu-latest
services:
mysql:
image: mysql:8.0
env:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
MYSQL_DATABASE: tensei
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
strategy:
fail-fast: true
max-parallel: 6
matrix:
node-version: [12.x]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Node.js v-${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: yarn install --production=false
- name: Build packages
run: yarn build
- name: Run package tests on mysql database
run: cd /home/runner/work/tensei/tensei/packages/tests && yarn test
env:
DATABASE_TYPE: mysql
DATABASE_NAME: tensei
DATABASE_USER: root