-
Notifications
You must be signed in to change notification settings - Fork 22
31 lines (28 loc) · 800 Bytes
/
ci.yml
File metadata and controls
31 lines (28 loc) · 800 Bytes
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
name: Build MYR
on: [push, pull_request]
jobs:
ci-checks:
runs-on: ubuntu-latest
env:
NODE_OPTIONS: '--max_old_space_size=4096'
container:
image: node:12.18
steps:
- uses: actions/checkout@v1
- name: Setup cache
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
- name: Reconfigure git to use HTTP authentication
run: >
git config --global url."https://github.com/".insteadOf
ssh://git@github.com/
- name: Fetch packages
run: npm install
- name: Run Linter
run: npm run lint
- name: Run unit tests
run: npm test
- name: Build production build
run: npm run build