-
Notifications
You must be signed in to change notification settings - Fork 35
45 lines (37 loc) · 1.19 KB
/
verify-changes.yaml
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
name: Verify Changes
on:
push:
pull_request:
branches:
- 'release/*'
- 'main'
jobs:
verify-changes:
name: verify-changes
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
submodules: recursive
- name: Setup Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version-file: './go.mod'
- name: Go Version
run: go version
- name: Generate Golang
run: |
export PATH=$PATH:/home/runner/go/bin/
- name: Verify Go Mod
run: ./.github/scripts/check-go-mod.sh
- name: Build Packages
run: ./.github/scripts/build-packages.sh
- name: Golangci Lint
uses: golangci/golangci-lint-action@3cfe3a4abbb849e10058ce4af15d205b6da42804 # v4.0.0
with:
# Patch version isn't needed; https://github.com/golangci/golangci-lint-action?tab=readme-ov-file#internals
version: v1.57
# Skip cache cause: https://github.com/golangci/golangci-lint-action/issues/135
skip-cache: true