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 77ee2ff
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Go

on: [push, pull_request]

# 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 77ee2ff

Please sign in to comment.