Skip to content

Commit

Permalink
Merge pull request #12 from spekary/main
Browse files Browse the repository at this point in the history
Moving CI testing to github actions
  • Loading branch information
spekary authored Jan 4, 2022
2 parents 85b07f3 + d0dbe4c commit e5ec756
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Go

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:

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

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17

- name: Install Go Imports
run: go install golang.org/x/tools/cmd/goimports@latest

- name: Build
run: go install

- name: Test
run: go test -v

0 comments on commit e5ec756

Please sign in to comment.