Skip to content

Commit

Permalink
chore: CI
Browse files Browse the repository at this point in the history
Signed-off-by: Norman Meier <[email protected]>
  • Loading branch information
n0izn0iz committed Jan 4, 2024
1 parent 6234488 commit ae72a6c
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:
- main
pull_request:

jobs:
go:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: actions/setup-go@v3
with:
go-version: "1.19"

- name: Tidy go.mod
run: go mod tidy

- name: Check diff
run: git diff --exit-code

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

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

- name: Check diff
run: git diff --exit-code

0 comments on commit ae72a6c

Please sign in to comment.