Skip to content

Commit 1ac14ec

Browse files
committed
Add GitHub Actions workflows
1 parent 389cd83 commit 1ac14ec

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/go.yml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: go
2+
on:
3+
pull_request:
4+
branches: ['*']
5+
push:
6+
branches: ['*']
7+
tags: ['v*']
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
golangci-lint:
14+
name: golangci-lint
15+
strategy:
16+
matrix:
17+
go-version: [stable, oldstable]
18+
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
- uses: actions/setup-go@v5
23+
with:
24+
go-version: ${{ matrix.go-version }}
25+
- uses: golangci/golangci-lint-action@v4
26+
with:
27+
version: v1.56
28+
29+
go-test:
30+
name: go test
31+
strategy:
32+
matrix:
33+
go-version: [stable, oldstable]
34+
os: [macos-latest, ubuntu-latest, windows-latest]
35+
36+
runs-on: ${{ matrix.os }}
37+
steps:
38+
- uses: actions/checkout@v4
39+
- uses: actions/setup-go@v5
40+
with:
41+
go-version: ${{ matrix.go-version }}
42+
- run: go test -v ./...

0 commit comments

Comments
 (0)