-
Notifications
You must be signed in to change notification settings - Fork 6
36 lines (34 loc) · 997 Bytes
/
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
name: CI
on:
pull_request:
workflow_dispatch:
jobs:
ci:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
target: [test, lint, build]
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
# Dependencies
- name: Cache dependencies
uses: actions/cache@v3
with:
path: |
./node_modules
./libs/cli/node_modules
key: ${{ runner.os }}-cache-${{ hashFiles('./package-lock.json') }}-${{ hashFiles('./libs/cli/package-lock.json') }}
- name: Install root dependencies
run: npm i
- name: Install cli dependencies
run: npm i
working-directory: ./libs/cli
# Running scripts
- name: Running ${{ matrix.target }}
run: npm run nx -- run-many --target=${{ matrix.target }} --configuration=production --exclude=docs,docs-app