-
Notifications
You must be signed in to change notification settings - Fork 4
150 lines (118 loc) · 4.12 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
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
name: CI
on:
push:
branches:
- main
paths-ignore:
- 'docs/**'
- 'tasks/**'
pull_request:
branches:
- main
paths-ignore:
- 'docs/**'
- 'tasks/**'
jobs:
determine-changed-paths:
runs-on: ubuntu-latest
outputs:
shared_web_core_changed: ${{ steps.filter.outputs.shared_web_core }}
academy_ui_changed: ${{ steps.filter.outputs.academy_ui }}
base_ui_changed: ${{ steps.filter.outputs.base_ui }}
rubrics_ui_changed: ${{ steps.filter.outputs.rubrics_ui }}
steps:
- uses: actions/checkout@v2
- name: Determine changed paths
id: filter
uses: dorny/paths-filter@v2
with:
filters: |
shared_web_core:
- 'shared/web-core/**'
academy_ui:
- 'academy-ui/**'
base_ui:
- 'base-ui/**'
rubrics_ui:
- 'rubrics-ui/**'
academy_ui_job:
runs-on: ubuntu-latest
needs: determine-changed-paths
if: ${{ needs.determine-changed-paths.outputs.academy_ui_changed == 'true' || needs.determine-changed-paths.outputs.shared_web_core_changed == 'true' }}
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 20
- name: Shared Web Core - Install dependencies
run: cd shared/web-core && yarn
- name: Shared Web Core - TSC
run: cd shared/web-core && yarn tsc
- name: Shared Web Core - Run Prettier
run: cd shared/web-core && yarn prettier-check
- name: Academy - Install dependencies
run: cd academy-ui && yarn
- name: Academy - Run ESLint
run: cd academy-ui && yarn lint
- name: Academy - Run Prettier
run: cd academy-ui && yarn prettier-check
- name: Academy - TSC
run: cd academy-ui && yarn tsc
- name: Academy - NEXT Build
run: cd academy-ui && yarn build
base_ui_job:
runs-on: ubuntu-latest
needs: determine-changed-paths
if: ${{ needs.determine-changed-paths.outputs.base_ui_changed == 'true' || needs.determine-changed-paths.outputs.shared_web_core_changed == 'true' }}
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 20
- name: Shared Web Core - Install dependencies
run: cd shared/web-core && yarn
- name: Shared Web Core - TSC
run: cd shared/web-core && yarn tsc
- name: Shared Web Core - Run Prettier
run: cd shared/web-core && yarn prettier-check
- name: Base UI - Install dependencies
run: cd base-ui && yarn
- name: Base UI - Run ESLint
run: cd base-ui && yarn lint
- name: Base UI - Run Prettier
run: cd base-ui && yarn prettier-check
- name: Base UI - TSC
run: cd base-ui && yarn compile
- name: Base UI - NEXT Build
run: cd base-ui && yarn build
rubrics_ui_job:
runs-on: ubuntu-latest
needs: determine-changed-paths
if: ${{ needs.determine-changed-paths.outputs.rubrics_ui_changed == 'true' || needs.determine-changed-paths.outputs.shared_web_core_changed == 'true' }}
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 20
- name: Shared Web Core - Install dependencies
run: cd shared/web-core && yarn
- name: Shared Web Core - TSC
run: cd shared/web-core && yarn tsc
- name: Shared Web Core - Run Prettier
run: cd shared/web-core && yarn prettier-check
- name: Rubrics UI - Install dependencies
run: cd rubrics-ui && yarn
- name: Rubrics UI - Run ESLint
run: cd rubrics-ui && yarn lint
- name: Rubrics UI - Run Prettier
run: cd rubrics-ui && yarn prettier-check
- name: Rubrics UI - TSC
run: cd rubrics-ui && yarn compile
- name: Rubrics UI - NEXT Build
run: cd rubrics-ui && yarn build