Skip to content

Commit

Permalink
Add GitHub Action for testing and linting
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusirgens committed Dec 7, 2021
1 parent 01e35f3 commit d4c6619
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Go

on: [push, pull_request]

jobs:
build:
env:
CGO_ENABLED: "0"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ^1.17
- name: Test
run: go test -v ./...

lint:
env:
CGO_ENABLED: "0"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ^1.17
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: latest
skip-go-installation: true
# command line arguments.
# args: --issues-exit-code=0

0 comments on commit d4c6619

Please sign in to comment.