-
Notifications
You must be signed in to change notification settings - Fork 47
57 lines (55 loc) · 1.6 KB
/
go.yml
File metadata and controls
57 lines (55 loc) · 1.6 KB
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
54
55
56
57
name: go
on:
push:
branches:
- main
pull_request:
merge_group:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' || github.ref_name != 'main' }}
jobs:
test-go:
name: "test-go"
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v6
- uses: perses/github-actions@v0.11.0
- uses: ./.github/perses-ci/actions/setup_environment
with:
enable_go: true
enable_cue: true # needed for DaC CLI commands unit tests
cue_version: "v0.14.0"
- name: test
run: make test
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v6
- uses: perses/github-actions@v0.11.0
- uses: ./.github/perses-ci/actions/setup_environment
with:
enable_go: true
enable_go_cache: false
enable_npm: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v9.2.0
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v2.4.0
- run: make golangci-lint
checklicense:
name: "check license headers"
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v6
- uses: perses/github-actions@v0.11.0
- uses: ./.github/perses-ci/actions/setup_environment
with:
enable_go: true
- name: check license headers
run: make checklicense