Skip to content

Commit 52c1243

Browse files
committed
chore: merge workflows
1 parent 7ff63c4 commit 52c1243

File tree

2 files changed

+21
-35
lines changed

2 files changed

+21
-35
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,15 @@ on:
66
- main
77
pull_request:
88

9+
permissions:
10+
contents: read
11+
12+
env:
13+
GOLANGCI_LINT_VERSION: v1.61.0
14+
915
jobs:
10-
build-lint-test:
11-
name: CI
16+
lint-build-test:
17+
name: Lint, Build, and Test
1218
runs-on: ubuntu-latest
1319
steps:
1420
- name: Checkout
@@ -19,20 +25,29 @@ jobs:
1925
with:
2026
go-version-file: ./go.mod
2127

28+
- name: Run golangci-lint
29+
uses: golangci/golangci-lint-action@v6
30+
with:
31+
version: ${{env.GOLANGCI_LINT_VERSION}}
32+
args: |
33+
"./..." --timeout=7m
34+
skip-cache: true
35+
install-mode: binary
36+
2237
- name: Setup Mage
2338
uses: magefile/mage-action@v3
2439
with:
2540
install-only: true
2641

42+
- name: Build
43+
run: |
44+
mage -v build
45+
2746
- name: Install test dependencies
2847
run: |
2948
sudo apt update
3049
sudo apt install -y gcc
3150
32-
- name: Build
33-
run: |
34-
mage -v build
35-
3651
- name: Test
3752
run: |
3853
CGO_ENABLED=1 mage -v testRace

.github/workflows/go-lint.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)