Skip to content

Commit

Permalink
enable github actions
Browse files Browse the repository at this point in the history
Signed-off-by: Youyuan Wu <youyuanwu@outlook.com>
  • Loading branch information
youyuanwu committed Jan 3, 2023
1 parent b86bbb6 commit 424d68c
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 26 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/go-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Go Test

on: [push]

jobs:

lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: "^1"
check-latest: true
cache: true
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.50
only-new-issues: true

test:
needs: [lint]
name: Test
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
steps:

- uses: actions/setup-go@v2
with:
go-version: 1.x

- uses: actions/checkout@v2

- run: go test
2 changes: 0 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
linters-settings:
govet:
check-shadowing: true
golint:
min-confidence: 0
gocyclo:
min-complexity: 30
maligned:
Expand Down
24 changes: 0 additions & 24 deletions .travis.yml

This file was deleted.

0 comments on commit 424d68c

Please sign in to comment.