-
Notifications
You must be signed in to change notification settings - Fork 14
35 lines (29 loc) · 762 Bytes
/
Copy pathtest.yaml
File metadata and controls
35 lines (29 loc) · 762 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
name: Test
on:
push:
branches:
- master
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
- name: Setup Go
uses: actions/setup-go@v5
with:
cache: true
go-version-file: 'go.mod'
- name: Run tests
run: make ci-test
- name: Send test coverage to Codecov
uses: codecov/codecov-action@v5
- name: Run Trivy vulnerability scanner in repo mode
uses: aquasecurity/trivy-action@v0.36.0
with:
scan-type: "fs"
ignore-unfixed: true
vuln-type: "os,library"
severity: "CRITICAL,HIGH"
exit-code: "1"