Skip to content

Commit

Permalink
add github action to run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmach committed Jul 8, 2023
1 parent 469375d commit 6deeac7
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

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

- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: '1.19'

- name: Run build
run: go build .

- name: Run vet & lint
run: |
go vet .
- name: Run tests
run: go test -v ./...

0 comments on commit 6deeac7

Please sign in to comment.