-
-
Notifications
You must be signed in to change notification settings - Fork 141
73 lines (55 loc) · 1.42 KB
/
tests.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: Node CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
test:
name: Test packages
runs-on: ubuntu-22.04
steps:
- name: Checkout Master
uses: actions/checkout@v4
- name: Setup env
uses: darkbasic/shared-config/setup@main
with:
nodeVersion: 18
- name: Check lint
run: yarn run test:lint
- name: Compile packages
run: yarn run compile
- name: Docker compose
run: docker-compose up -d
- name: Run tests
run: yarn run coverage
- name: Upload coverage
uses: codecov/codecov-action@v3
test-examples:
name: Test examples
runs-on: ubuntu-22.04
steps:
- name: Checkout Master
uses: actions/checkout@v4
- name: Setup env
uses: darkbasic/shared-config/setup@main
with:
nodeVersion: 18
- name: Compile packages
run: yarn run compile
- name: Test examples
run: yarn run test:examples
env:
REACT_APP_API_URL: http://localhost:3000
test-documentation:
name: Test documentation
runs-on: ubuntu-22.04
steps:
- name: Checkout Master
uses: actions/checkout@v4
- name: Setup env
uses: darkbasic/shared-config/setup@main
with:
nodeVersion: 18
- name: Test documentation
run: yarn workspace accounts-js run build