name: go-test-build on: push: pull_request: jobs: go-test-build: runs-on: ubuntu-latest container: image: ghcr.io/catthehacker/ubuntu:runner-latest strategy: matrix: go: [ "1.22", "1.21" ] steps: - uses: actions/checkout@v3 - uses: actions/setup-go@v5 with: go-version: ${{ matrix.go }} - run: go test -v ./... - run: go build -o main main.go