Skip to content

Commit

Permalink
Enable GitHub Actions
Browse files Browse the repository at this point in the history
This patch makes GitHub Actions

- Build the project
- Ensure `go fmt` does not change the formatting
  • Loading branch information
lkiesow committed Jan 28, 2024
1 parent 035dcac commit 42299ce
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/golang.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Go fmt and build

on:
- push
- pull_request

jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [ '1.19', '1.20', '1.21.x' ]

steps:
- uses: actions/checkout@v4

- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}

- name: Run go fmt
run: go fmt

- name: Check formatting
run: git diff --quiet

- name: Build project
run: go build

0 comments on commit 42299ce

Please sign in to comment.