Skip to content

Commit ee6bae8

Browse files
committed
add github actions
1 parent 2d77f9c commit ee6bae8

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.go text eol=lf

.github/workflows/qa.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Quality Assurance
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- master
8+
pull_request:
9+
10+
jobs:
11+
test:
12+
name: Test
13+
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
go: [stable]
19+
os: [ubuntu-latest, macos-latest, windows-latest]
20+
21+
steps:
22+
- uses: actions/checkout@v4
23+
24+
- name: Set up Go
25+
uses: actions/setup-go@v5
26+
with:
27+
go-version: ${{ matrix.go }}
28+
29+
- name: Test
30+
run: go test -v ./...
31+
32+
lint:
33+
name: Lint
34+
35+
runs-on: ${{ matrix.os }}
36+
strategy:
37+
fail-fast: false
38+
matrix:
39+
go: [stable]
40+
os: [ubuntu-latest, macos-latest, windows-latest]
41+
42+
steps:
43+
- uses: actions/checkout@v4
44+
45+
- name: Set up Go
46+
uses: actions/setup-go@v5
47+
with:
48+
go-version: ${{ matrix.go }}
49+
50+
- name: lint
51+
uses: golangci/golangci-lint-action@v8
52+
with:
53+
version: v2.1
54+
args: --tests=false

0 commit comments

Comments
 (0)