8000 enable github actions · go-openapi/jsonreference@424d68c · GitHub
[go: up one dir, main page]

Skip to content

Commit 424d68c

Browse files
committed
enable github actions
Signed-off-by: Youyuan Wu <youyuanwu@outlook.com>
1 parent b86bbb6 commit 424d68c

File tree

3 files changed

+39
-26
lines changed

3 files changed

+39
-26
lines changed

.github/workflows/go-test.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Go Test
2+
3+
on: [push]
4+
5+
jobs:
6+
7+
lint:
8+
name: lint
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- uses: actions/setup-go@v3
13+
with:
14+
go-version: "^1"
15+
check-latest: true
16+
cache: true
17+
- name: golangci-lint
18+
uses: golangci/golangci-lint-action@v3
19+
with:
20+
version: v1.50
21+
only-new-issues: true
22+
23+
test:
24+
needs: [lint]
25+
name: Test
26+
runs-on: ${{ matrix.os }}
27+
28+
strategy:
29+
matrix:
30+
os: [ ubuntu-latest, macos-latest, windows-latest ]
31+
steps:
32+
33+
- uses: actions/setup-go@v2
34+
with:
35+
go-version: 1.x
36+
37+
- uses: actions/checkout@v2
38+
39+
- run: go test

.golangci.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
linters-settings:
22
govet:
33
check-shadowing: true
4-
golint:
5-
min-confidence: 0
64
gocyclo:
75
min-complexity: 30
86
maligned:

.travis.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)
0