Skip to content

ci: switch Go "1.20" -> "1.21" in GitHub Actions #13

ci: switch Go "1.20" -> "1.21" in GitHub Actions

ci: switch Go "1.20" -> "1.21" in GitHub Actions #13

---
name: Check Go Releaser config
on: # yamllint disable-line rule:truthy
push:
branches: [main, master]
paths:
- ".goreleaser.yaml"
- ".github/workflows/check-goreleaser-config.yaml"
pull_request:
branches: [main, master]
paths:
- ".goreleaser.yaml"
- ".github/workflows/check-goreleaser-config.yaml"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
checkGoReleaserConfig:
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
matrix:
# Without quotes, 1.20 becomes 1.2!
go-version: ["1.21"]
steps:
- name: checkout
uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
cache-dependency-path: src/gabo/go.sum
- name: Install Go Releaser
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: latest
install-only: true
- name: Check Go Releaser config is valid
run: goreleaser check --config .goreleaser.yaml
- name: Build (not release) binaries with Go Releaser
run: goreleaser build --snapshot --clean