Skip to content

Commit 3c43bfd

Browse files
authored
Merge pull request #1 from riptideslabs/gh_workflow
Create github workflow
2 parents 77351e0 + f112933 commit 3c43bfd

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/go.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# This workflow will build a golang project
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
3+
4+
name: Go
5+
6+
on:
7+
push:
8+
branches: [ "main" ]
9+
pull_request:
10+
branches: [ "main" ]
11+
12+
jobs:
13+
14+
build:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Set up Go
20+
uses: actions/setup-go@v5
21+
with:
22+
go-version-file: go.mod
23+
- name: vet
24+
run: make vet
25+
26+
- name: fmt
27+
run: make fmt
28+
29+
- name: golangci-lint
30+
uses: golangci/golangci-lint-action@v7
31+
with:
32+
version: v2.0
33+
34+
- name: Build
35+
run: go build -v ./...
36+

0 commit comments

Comments
 (0)