Debian Codegraph @

.github/workflows/main.yml

raw
1 name: Main
2
3 on:
4 push:
5 branches:
6 - main
7 - master
8 pull_request:
9 branches:
10 - main
11 - master
12
13 jobs:
14
15 main:
16 name: Main Process
17 runs-on: ubuntu-latest
18 env:
19 GO_VERSION: stable
20 GOLANGCI_LINT_VERSION: v2.6
21 CGO_ENABLED: 0
22
23 steps:
24 - uses: actions/checkout@v4
25 - uses: actions/setup-go@v5
26 with:
27 go-version: ${{ env.GO_VERSION }}
28
29 - name: Check and get dependencies
30 run: |
31 go mod tidy
32 git diff --exit-code go.mod
33 git diff --exit-code go.sum
34 go mod download
35
36 - uses: golangci/golangci-lint-action@v9
37 with:
38 install-only: true
39 version: ${{ env.GOLANGCI_LINT_VERSION }}
40
41 - name: Make
42 run: make