Skip to content

chore: Upgrade to golang 1.22, sprout vs. spring, and other updates a… #574

chore: Upgrade to golang 1.22, sprout vs. spring, and other updates a…

chore: Upgrade to golang 1.22, sprout vs. spring, and other updates a… #574

Workflow file for this run

on: [push, pull_request]
name: Build
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '1.20', '1.21' ]
name: Go ${{ matrix.go }} build
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Setup go
uses: actions/setup-go@v1
with:
go-version: ${{ matrix.go }}
- name: Cache Build Dependencies # Speeds up subsquent builds
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: go-${{ hashFiles('**/go.sum') }}
restore-keys: |
go-
- name: Build
run: go build -v .
- name: Test
run: go test -v -race -covermode atomic -coverprofile=profile.cov ./...
- name: Send Coverage
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: profile.cov