Skip to content

Commit

Permalink
Added workflow for CI builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Dorthu authored May 1, 2024
1 parent 86c810d commit 6b8782e
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Go

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: ['1.21.x', '1.22.x']
steps:
- uses: actions/checkout@v4
- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Build
run: go build -v ./...
- name: Format Check
run: test $(gofmt -l . | wc -l) -eq 0 || exit 1
- name: Test
run: go test -v ./...

0 comments on commit 6b8782e

Please sign in to comment.