forked from Jefiozie/ngx-aws-deploy
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (41 loc) · 1.22 KB
/
ngx-aws-deploy.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: ngx-aws-deploy
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x, 18.x]
env:
NX_BRANCH: ${{ github.event.number }}
NX_RUN_GROUP: ${{ github.run_id }}
steps:
- name: Clone repository
# `fetch-depth` defaults to 1.
uses: actions/checkout@v2
- name: Cache builder node modules
id: cache
uses: actions/cache@v1
with:
path: node_modules
key: ${{ runner.OS }}-build-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-build-${{ env.cache-name }}-
${{ runner.OS }}-build-${{ matrix.version }}
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.version }}
- name: Install Builder Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: npm ci
- name: Symlink dist 🔗
run: npm run symlinks
- name: Tests coverage
run: npm run nx run-many -- --target=test --all --codeCoverage
- name: Build
run: npm run nx run-many -- --target=build --all --parallel=true --prod