Skip to content

Commit

Permalink
Add workflow for PR checks
Browse files Browse the repository at this point in the history
  • Loading branch information
lunjon committed Mar 5, 2024
1 parent 4b57ce2 commit fc3e59f
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Go

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

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
version: ["1.18", "1.21"]
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.version }}

- name: Build
run: go build -v ./...

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

- name: Check formatting
run: |
go fmt ./...
git diff --exit-code

0 comments on commit fc3e59f

Please sign in to comment.