-
Notifications
You must be signed in to change notification settings - Fork 0
88 lines (83 loc) · 1.94 KB
/
pr.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: Pull request
on:
pull_request:
branches:
- main
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
eslint-client:
name: EsLint client
runs-on: ubuntu-latest
defaults:
run:
working-directory: client
steps:
- uses: actions/setup-node@v3
with:
node-version: 19.8.1
- uses: actions/checkout@v3
- name: Install dependency
run: npm i -g pnpm
- name: Install dependency
run: pnpm i
- name: EsLint
run: pnpm run lint
test-client:
name: Test client
runs-on: ubuntu-latest
needs: eslint-client
defaults:
run:
working-directory: client
steps:
- uses: actions/setup-node@v3
with:
node-version: 19.8.1
- uses: actions/checkout@v3
- name: Install dependency
run: npm i -g pnpm
- name: Install dependency
run: pnpm i
eslint-server:
name: EsLint server
runs-on: ubuntu-latest
defaults:
run:
working-directory: server
steps:
- uses: actions/setup-node@v3
with:
node-version: 19.8.1
- uses: actions/checkout@v3
- name: Install dependency
run: npm i
- name: EsLint
run: npm run lint
test-server:
name: Test Server
runs-on: ubuntu-latest
needs: eslint-server
defaults:
run:
working-directory: server
env:
SECRET_KEY: 'secret_key'
DATABASE_URL: 'postgresql://postgres:1234@postgres:1234/partsorder'
MINIO_ROOT_USER: minio
MINIO_ROOT_PASSWORD: minio12345678
MINIO_END_POINT: minio
MINIO_PORT: 9000
MINIO_BUCKET: storage
steps:
- uses: actions/setup-node@v3
with:
node-version: 19.8.1
- uses: actions/checkout@v3
- name: Install dependency
run: npm i
- name: Generate types
run: npm run generate
- name: Test
run: npm run test