-
Notifications
You must be signed in to change notification settings - Fork 41
47 lines (45 loc) · 1.16 KB
/
ci.yml
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
42
43
44
45
46
47
name: ci
on:
push:
branches: [main]
paths-ignore:
- 'docs/**'
- '**.md'
pull_request:
branches: [main]
paths-ignore:
- 'docs/**'
- '**.md'
jobs:
unit_test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Node.js '18.x'
uses: actions/setup-node@v2
with:
node-version: "18.x"
- name: Install dependencies
run: npm ci
- name: Install Cosign Server dependencies
run: cd cosign-server && npm ci
- name: Build
run: npm run build
- name: Run lint
run: npm run lint
- name: Run Coverage and Upload to CodeCov
run: |
npm run coverage; \
curl -Os https://uploader.codecov.io/latest/linux/codecov; \
chmod +x codecov; \
./codecov;
slither:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: crytic/slither-action@35510b34cfdfb137d9816d27378ee8c217f1fa1c
with:
fail-on: low
slither-version: d8e526e53ff690bd24c260042117efab5ce9c271
slither-args: "--exclude-dependencies"