Skip to content

Commit

Permalink
chore: run go tests on github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
clarete committed May 7, 2024
1 parent b14e34d commit bb2758e
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Go

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

jobs:
build:

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@v5
with:
go-version: ${{ matrix.go-version }}
# You can test your matrix by printing the current Go version
- name: Display Go version
run: go version
- name: Install dependencies
working-directory: ./go
run: go get .
- name: Generate
working-directory: ./go
run: go generate -v ./...
- name: Build
working-directory: ./go
run: go test -v ./...

0 comments on commit bb2758e

Please sign in to comment.