Skip to content

Commit dba6ac8

Browse files
committed
Add analyze workflow
1 parent 654e25c commit dba6ac8

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/analyze.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Analyze
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
lint-app:
11+
runs-on: ubuntu-20.04
12+
name: Lint app
13+
steps:
14+
- uses: actions/checkout@v2.3.4
15+
- name: Set up Node.js
16+
uses: actions/setup-node@v2.1.4
17+
with:
18+
node-version: 14.15.4
19+
- name: Install NPM Packages
20+
run: npm ci
21+
- name: Lint
22+
run: npm run lint
23+
24+
lint-dockerfile:
25+
runs-on: ubuntu-20.04
26+
name: Lint dockerfile
27+
steps:
28+
- uses: actions/checkout@v2.3.4
29+
- name: Lint app dockerfile
30+
uses: brpaz/hadolint-action@v1.3.1
31+
with:
32+
dockerfile: Dockerfile
33+
- name: Lint staticman dockerfile
34+
uses: brpaz/hadolint-action@v1.3.1
35+
with:
36+
dockerfile: staticman/Dockerfile

0 commit comments

Comments
 (0)