-
Notifications
You must be signed in to change notification settings - Fork 2
70 lines (54 loc) · 1.92 KB
/
action.yaml
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
name: Periotable CI
on: [push, pull_request]
jobs:
ci:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [20]
threads: [4]
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Setup Pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install Depedencies
run: pnpm i
- name: Generate Data
working-directory: packages/data
env:
OWNER: ${{ secrets.OWNER }}
TOKEN: ${{ secrets.TOKEN }}
REPO: ${{ secrets.REPO }}
DATA_PATH: ${{ secrets.DATA_PATH }}
run: make generate-data
- name: Create Environment Variable
working-directory: apps/web
run: make copy-env-testing
- name: Generate Env Type Definitions
working-directory: apps/web
run: make generate-environment-type-definition
- name: Generate Web Pages & Schema
working-directory: apps/web
run: make generate-web-pages-and-schema
- name: Generate Assets
working-directory: apps/web
run: make generate-images
- name: Lint code
working-directory: apps/web
run: make lint
- name: Typecheck code
run: make typecheck
- name: Format Check
run: make format-check
- name: Build & Test code
working-directory: apps/web
run: make pretest-ci && make test