-
Notifications
You must be signed in to change notification settings - Fork 14
45 lines (40 loc) · 1.01 KB
/
build.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
name: Build
on:
push:
branches:
- main
pull_request:
jobs:
pre_job:
# continue-on-error: true # Uncomment once integration is finished
runs-on: ubuntu-latest
# Map a step output to a job output
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@master
with:
skip_after_successful_duplicate: true
concurrent_skipping: 'same_content'
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16.x'
- name: npm install
run: npm install
- name: lint
run: npm run lint
- name: build
run: npm run build --workspaces
- name: test server
run: npm test --workspace=server
- name: test client
run: npm test --workspace=client
- name: Run cypress tests
uses: cypress-io/github-action@v2
with:
start: npm run start:e2e