Skip to content

Commit 292ddd1

Browse files
committed
Added CI to GitHub Actions with go test
Signed-off-by: Smyslov Maxim <maksim.smyslov@flant.com> gg Signed-off-by: Smyslov Maxim <maksim.smyslov@flant.com> gg Signed-off-by: Smyslov Maxim <maksim.smyslov@flant.com>
1 parent 669c142 commit 292ddd1

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/checks.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches-ignore: [ main ]
6+
7+
8+
env:
9+
GO_VERSION: '1.24'
10+
11+
jobs:
12+
golangci-lint:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-go@v5
17+
with:
18+
go-version: ${{ env.GO_VERSION }}
19+
- name: lint
20+
uses: golangci/golangci-lint-action@v8
21+
with:
22+
version: v2.1
23+
24+
tests:
25+
needs: golangci-lint
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: actions/checkout@v4
29+
- uses: actions/setup-go@v5
30+
with:
31+
go-version: ${{ env.GO_VERSION }}
32+
- name: Run tests
33+
run: go test ./... -race

0 commit comments

Comments
 (0)