-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (45 loc) · 1.16 KB
/
main.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
44
45
46
name: CI
'on':
- push
jobs:
mysql_57:
runs-on: ubuntu-22.04
services:
mysql:
image: mariadb:lts
env:
MARIADB_ALLOW_EMPTY_PASSWORD: yes
MARIADB_ROOT_PASSWORD: 123456
MARIADB_DATABASE: fedaco_test
ports:
- 3306:3306
strategy:
matrix:
node:
- '20'
name: Node ${{ matrix.node }} sample
steps:
- uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: "${{ matrix.node }}"
- uses: actions/cache@v2
id: yarn-cache
with:
path: |
node_modules
**/node_modules
key: "${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}"
restore-keys: "${{ runner.os }}-yarn-\n"
- name: Installing project dependencies
run: yarn install --frozen-lockfile --non-interactive
- name: test fedaco
env:
DB_HOST: 127.0.0.1
DB_PORT: 3306
DB_USER: root
DB_PASSWORD: "123456"
DB_COLLATION: utf8mb4_unicode_ci
run: |
yarn nx test --project fedaco