Skip to content

Commit 306e09e

Browse files
committed
chore: use single job
1 parent 3cefb3b commit 306e09e

File tree

1 file changed

+6
-19
lines changed

1 file changed

+6
-19
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ env:
1313
GOLANGCI_LINT_VERSION: v1.61.0
1414

1515
jobs:
16-
lint:
17-
name: Lint Go
16+
lint-build-test:
17+
name: Lint, Build, and Test
1818
runs-on: ubuntu-latest
1919
steps:
2020
- name: Checkout
@@ -34,33 +34,20 @@ jobs:
3434
skip-cache: true
3535
install-mode: binary
3636

37-
build-test:
38-
name: Build and Test
39-
needs: lint
40-
runs-on: ubuntu-latest
41-
steps:
42-
- name: Checkout
43-
uses: actions/checkout@v4
44-
45-
- name: Setup go
46-
uses: actions/setup-go@v5
47-
with:
48-
go-version-file: ./go.mod
49-
5037
- name: Setup Mage
5138
uses: magefile/mage-action@v3
5239
with:
5340
install-only: true
5441

42+
- name: Build
43+
run: |
44+
mage -v build
45+
5546
- name: Install test dependencies
5647
run: |
5748
sudo apt update
5849
sudo apt install -y gcc
5950
60-
- name: Build
61-
run: |
62-
mage -v build
63-
6451
- name: Test
6552
run: |
6653
CGO_ENABLED=1 mage -v testRace

0 commit comments

Comments
 (0)