-
Notifications
You must be signed in to change notification settings - Fork 110
55 lines (49 loc) · 1.51 KB
/
ci.yaml
File metadata and controls
55 lines (49 loc) · 1.51 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
name: Wrangler CI
on:
push:
pull_request:
tags:
- v*
branches:
- 'release/*'
- 'main'
jobs:
ci:
strategy:
matrix:
arch:
- amd64
- arm64
runs-on: org-${{ github.repository_owner_id }}-${{ matrix.arch }}-k8s
container: registry.suse.com/bci/golang:1.25
steps:
- name : Checkout repository
# https://github.com/actions/checkout/releases/tag/v4.1.1
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name : Install mockgen
run: go install -v -x go.uber.org/mock/mockgen@v0.6.0
- name : Run CI
run: bash scripts/ci
golangci:
name: golangci-lint
runs-on: ubuntu-latest
env:
SETUP_GO_VERSION: '^1.25'
GOLANG_CI_LINT_VERSION: v2.7.1
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
submodules: recursive
- name: Setup Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6
with:
go-version: ${{ env.SETUP_GO_VERSION }}
- name: Generate Golang
run: |
export PATH=$PATH:/home/runner/go/bin/
- name: golangci-lint
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # 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: ${{ env.GOLANG_CI_LINT_VERSION }}