-
Notifications
You must be signed in to change notification settings - Fork 8
59 lines (52 loc) · 1.17 KB
/
test.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
47
48
49
50
51
52
53
54
55
56
57
58
59
name: test
on:
push:
branches:
- main
pull_request:
branches:
- '**'
jobs:
test:
runs-on: ubuntu-latest
services:
mysql:
image: mysql:8.0
env:
MYSQL_ALLOW_EMPTY_PASSWORD: 1
MYSQL_DATABASE: cormo_test
MYSQL_USER: cormo_test
MYSQL_PASSWORD: cormo_test
ports:
- 21860:3306
mongo:
image: mongo:3.6-jessie
ports:
- 21861:27017
postgres:
image: mdillon/postgis:9.6-alpine
env:
POSTGRES_DB: cormo_test
POSTGRES_USER: cormo_test
POSTGRES_PASSWORD: cormo_test
ports:
- 21862:5432
redis:
image: redis:4-alpine
ports:
- 21863:6379
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: npm
- name: Install packages
run: |
npm install
(cd packages/cormo ; npm install)
(cd packages/graphql ; npm install)
- name: Run test
run: ./node_modules/.bin/lerna run test