Skip to content

Commit

Permalink
Use GitHub Actions for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
arey authored Nov 11, 2021
1 parent 800feef commit f794174
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/angular-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Angular CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name : Install Dependencies
run: npm ci

- name: Build
run: npm run build --if-present -- --prod

- name: Lint
run: npm run lint

- name: Test
run: npm test

0 comments on commit f794174

Please sign in to comment.