Skip to content

Commit

Permalink
Merge pull request #6 from plan97/workflows
Browse files Browse the repository at this point in the history
Added GitHub workflows for Go.
  • Loading branch information
plan97 committed Mar 14, 2021
2 parents e6612fd + 1aa92fe commit 4b44c8e
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Go

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: "^1.16"

- name: Add missing and remove unused modules
run: go mod tidy

- name: Install
run: go install ./...

- name: Test
run: go test -v ./...

0 comments on commit 4b44c8e

Please sign in to comment.