-
-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (32 loc) · 808 Bytes
/
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
name: build
on:
push:
branches:
- main
pull_request:
jobs:
job-test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Check out source code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: v33/go.mod
- name: Run lint
uses: reviewdog/action-golangci-lint@v2
with:
workdir: v33/
golangci_lint_flags: '--config=../.golangci.yml'
- name: Test
run: make ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run octocov
uses: k1LoW/octocov-action@v0
- name: Run Trivy vulnerability scanner in repo mode
uses: aquasecurity/trivy-action@master
with:
scan-type: 'fs'