-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (54 loc) · 1.43 KB
/
lint_and_build.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
name: Lint and build
on:
push:
branches: ['main']
pull_request:
branches: ['main']
jobs:
lint_and_build:
name: 'Node ${{ matrix.node-version }}'
runs-on: ubuntu-20.04
timeout-minutes: 10
strategy:
matrix:
node-version: ['18', '20']
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Set up node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: Install dependencies
run: npm install
- name: Install components dependencies
run: |
cd components
npm install
- name: Run static code analysis on components module
run: |
cd components
npx eslint .
- name: Run static code analysis
run: npx eslint .
- name: Build site
env:
FRACTAL_SERVER_HOST: http://localhost:8000
AUTH_COOKIE_NAME: fastapiusersauth
AUTH_COOKIE_SECURE: false
AUTH_COOKIE_DOMAIN:
AUTH_COOKIE_PATH: /
AUTH_COOKIE_SAME_SITE: lax
PUBLIC_OAUTH_CLIENT_NAME:
PUBLIC_FRACTAL_ADMIN_SUPPORT_EMAIL:
run: npm run build
- name: Install tasks-list dependencies
run: |
cd tasks-list
npm install
- name: Build tasks-list
run: |
cd tasks-list
npm run build