Skip to content

Bump goreleaser/goreleaser-action from 5.1.0 to 6.0.0 #497

Bump goreleaser/goreleaser-action from 5.1.0 to 6.0.0

Bump goreleaser/goreleaser-action from 5.1.0 to 6.0.0 #497

Workflow file for this run

# This GitHub action runs your tests for each commit push and/or PR. Optionally
# you can turn it on using a cron schedule for regular testing.
#
name: Tests
on:
pull_request:
paths-ignore:
- 'docs/'
- 'templates/'
- 'CHANGELOG.md'
- 'README.md'
push:
paths-ignore:
- 'docs/'
- 'templates/'
- 'CHANGELOG.md'
- 'README.md'
# For systems with an upstream API that could drift unexpectedly (like most SaaS systems, etc.),
# we recommend testing at a regular interval not necessarily tied to code changes. This will
# ensure you are alerted to something breaking due to an API change, even if the code did not
# change.
# schedule:
# - cron: '0 13 * * *'
jobs:
# ensure the code builds...
build:
runs-on: ubuntu-latest
timeout-minutes: 5
strategy:
matrix:
go:
- 1.22.x
- 1.21.x
name: Go ${{ matrix.go }} Build
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
id: go
- name: Get dependencies
run: |
go mod download
- name: Build
run: |
go build -v .
test:
name: test
strategy:
matrix:
go:
- 1.22.x
- 1.21.x
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: make test
run: make test