Skip to content

Merge pull request #87 from hakierspejs/dependabot/go_modules/golang.… #165

Merge pull request #87 from hakierspejs/dependabot/go_modules/golang.…

Merge pull request #87 from hakierspejs/dependabot/go_modules/golang.… #165

Workflow file for this run

name: Go
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
go: ["1.19"]
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Get dependencies
run: |
go get -v -t -d ./...
- name: Format Check
run: |
if [ $(gofmt -l -s . | wc -l) -ne 0 ]; then echo "gofmt failed"; exit 1; fi
- name: Build
run: |
go build -v ./cmd/long-season/*.go
go build -v ./cmd/short-season/*.go
- name: Test
run: go test -v ./...