Build #297
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
pull_request: | |
branches: ['main'] | |
push: | |
branches: [ main ] | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
build: | |
defaults: | |
run: | |
working-directory: image/git-init | |
strategy: | |
fail-fast: false | |
matrix: | |
go-version: ['1.20', '1.21', '1.22'] | |
name: Build ${{ matrix.go-version }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5.1.0 | |
with: | |
go-version: ${{ matrix.go-version }} | |
check-latest: true | |
# FIXME: figure out how to configure or use golangci-lint | |
# - uses: golang/govulncheck-action@dd3ead030e4f2cf713062f7a3395191802364e13 # v1 | |
# with: | |
# go-package: ./image/git-init/... | |
# go-version-input: ${{ matrix.go-version }} | |
- run: | | |
go build ./... | |
go test -run=^$ ./... |