-
Notifications
You must be signed in to change notification settings - Fork 30
53 lines (43 loc) · 885 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: "CI"
on:
pull_request:
push:
# branches:
# - 'master'
# tags:
# - '*'
permissions:
pull-requests: write
contents: write
id-token: write
jobs:
CI:
runs-on: ubuntu-latest
name: Tests on Go
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.15"
- name: Format
run: |
test -z $(go fmt ./...)
- name: Tidy
run: |
go mod download
test -z $(go mod tidy -v)
- name: Verify
run: |
go mod verify
- name: Build
run: |
go build ./...
- name: Test
run: |
go test ./...
- uses: anchore/sbom-action@v0
with:
path: ./
format: cyclonedx-json