-
Notifications
You must be signed in to change notification settings - Fork 6
43 lines (41 loc) · 1.06 KB
/
ci.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
name: Test Angular and Node build
on:
pull_request:
branches:
- master
jobs:
buildtestenv:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: 12
- run: npm install
working-directory: ucla-prrla
- run: node_modules/.bin/ng build --no-progress
working-directory: ucla-prrla
- name: Cache Test Environment Artifacts
uses: actions/cache@v2
with:
path: ucla-prrla/dist
key: testprl
buildprodenv:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ucla-prrla
steps:
- uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: 12
- run: npm install
- run: node_modules/.bin/ng build --env=prod --no-sourcemap --no-progress
- name: Cache Prod Environment Artifacts
uses: actions/cache@v2
with:
path: ucla-prrla/dist
key: prodprl