Skip to content

Commit 51c525d

Browse files
committed
Add build to ci
1 parent 712c322 commit 51c525d

File tree

1 file changed

+23
-5
lines changed

1 file changed

+23
-5
lines changed

.github/workflows/eslint.yml

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,36 @@
77
# More details at https://github.com/eslint/eslint
88
# and https://eslint.org
99

10-
name: ESLint
10+
name: Build and lint
1111

1212
on:
1313
push:
14-
branches: [ "main", "dev" ]
14+
branches: ["main"]
1515
pull_request:
1616
# The branches below must be a subset of the branches above
17-
branches: [ "main", "dev" ]
17+
branches: ["main"]
1818
schedule:
19-
- cron: '28 20 * * 5'
19+
- cron: "28 20 * * 5"
2020

2121
jobs:
22+
build:
23+
name: Run build
24+
runs-on: ubuntu-latest
25+
permissions:
26+
contents: read
27+
security-events: write
28+
steps:
29+
- name: Checkout code
30+
uses: actions/checkout@v3
31+
32+
- name: Npm install
33+
run: |
34+
npm install
35+
36+
- name: Run build
37+
run: npm run build-lib
38+
continue-on-error: true
39+
2240
eslint:
2341
name: Run eslint scanning
2442
runs-on: ubuntu-latest
@@ -42,4 +60,4 @@ jobs:
4260
uses: github/codeql-action/upload-sarif@v2
4361
with:
4462
sarif_file: eslint-results.sarif
45-
wait-for-processing: true
63+
wait-for-processing: true

0 commit comments

Comments
 (0)