-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (41 loc) · 1.1 KB
/
CI.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
name: CI
on:
push:
branches:
- main
# - develop
# - web
# - web/feature/*
pull_request:
branches:
- main
# - develop
# - web
# - web/feature/*
#DISABLED
#if: false
jobs:
Build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: nrwl/nx-set-shas@v3
with:
sha: ${{ github.sha }}
- name: Install dependencies
run: npm ci
- name: Install @nrwl/nx-linux-x64-gnu
run: npm install @nrwl/nx-linux-x64-gnu
- name: Format
# run: npm run format:check
run: npx nx affected --target=format:check --parallel=3 --projects=web,api
- name: Lint
run: npx nx affected --target=lint --parallel=3 --projects=web,api
- name: Unit Tests
run: npx nx affected --target=test --parallel=3 --projects=web,api
- name: E2E Tests
run: npx nx affected --target=e2e --parallel=3 --configuration=ci --projects=web,api
- name: Build
run: npx nx affected --target=build --parallel=3 --projects=web,api