Skip to content

update error messages #509

update error messages

update error messages #509

Workflow file for this run

name: test and release
on:
push:
jobs:
test:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
- name: lint
run: |
make lint
- name: test
run: |
sw_vers
make test
make test-large-file
test_on_non_macos:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
- name: test
shell: bash
run: |
make test-on-non-macos
release:
runs-on: macos-latest
name: goreleaser
needs: [test, test_on_non_macos]
if: startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version-file: "go.mod"
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}