-
Notifications
You must be signed in to change notification settings - Fork 4
41 lines (32 loc) · 831 Bytes
/
ci.yaml
File metadata and controls
41 lines (32 loc) · 831 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
32
33
34
35
36
37
38
39
40
41
name: CI
on:
push:
branches: ['master']
pull_request:
branches: ['master']
workflow_dispatch: {}
concurrency:
group: 'ci'
cancel-in-progress: true
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: Install Node.js & NPM
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Lint
run: npm run lint
- name: Check code style
run: npm run prettier:check
- name: Build Angular app
run: npm run build:prod
- name: Build container image
run: docker build -f .github/workflows/Dockerfile-ci -t ${GITHUB_REPOSITORY,,}:${GIT_COMMIT_SHORT_HASH:-dev} .