Skip to content

Commit c5e4b22

Browse files
committed
Add github actions workflows
Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent c17faed commit c5e4b22

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

.github/workflows/test.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: test
2+
on: [push, pull_request]
3+
4+
permissions:
5+
contents: read
6+
7+
jobs:
8+
test:
9+
strategy:
10+
matrix:
11+
go-version: [1.18.x, 1.19.x]
12+
os: [ubuntu-latest, windows-latest, macos-latest]
13+
runs-on: ${{ matrix.os }}
14+
timeout-minutes: 10
15+
steps:
16+
- uses: actions/setup-go@v3
17+
with:
18+
go-version: ${{ matrix.go-version }}
19+
- uses: actions/checkout@v3
20+
- name: Test
21+
run: go test -v ./...

.github/workflows/validate.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: validate
2+
on: [push, pull_request]
3+
4+
permissions:
5+
contents: read
6+
7+
jobs:
8+
linters:
9+
strategy:
10+
matrix:
11+
go-version: [1.19.x]
12+
os: [ubuntu-latest]
13+
runs-on: ${{ matrix.os }}
14+
timeout-minutes: 10
15+
steps:
16+
- uses: actions/setup-go@v3
17+
with:
18+
go-version: ${{ matrix.go-version }}
19+
- uses: actions/checkout@v3
20+
- name: lint
21+
uses: golangci/golangci-lint-action@v3
22+
with:
23+
version: v1.49
24+
args: --print-resources-usage --timeout=10m --verbose

0 commit comments

Comments
 (0)