Luís Murta 22668da99a
All checks were successful
Go / build (1.22) (pull_request) Successful in 58s
Go / build (1.21) (pull_request) Successful in 1m0s
Go / build (1.21) (push) Successful in 12s
Go / build (1.22) (push) Successful in 10s
Adds Go workflow to run UTs on CI
It now builds and tests the project w/ Go 1.21 and 1.22.

Issue # 8
2024-06-29 10:58:15 +01:00

29 lines
467 B
YAML

name: Go
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [ '1.21', '1.22' ]
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...