Skip to content

Commit 82ffe6e

Browse files
committed
chore: add workflow
1 parent 3418e1f commit 82ffe6e

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

.github/workflows/go.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: go
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
env:
15+
GOPRIVATE: github.com/NextronSystems/
16+
steps:
17+
- uses: actions/checkout@v4
18+
- uses: actions/setup-go@v5
19+
with:
20+
go-version: stable
21+
- name: Build
22+
run: go build -v ./...
23+
- name: Test
24+
run: go test -v ./...
25+
lint:
26+
runs-on: ubuntu-latest
27+
env:
28+
GOPRIVATE: github.com/NextronSystems/
29+
steps:
30+
- uses: actions/checkout@v4
31+
- uses: actions/setup-go@v5
32+
with:
33+
go-version: stable
34+
- name: Lint
35+
uses: golangci/golangci-lint-action@v6
36+
with:
37+
version: v1.60

0 commit comments

Comments
 (0)