39 lines
743 B
YAML
39 lines
743 B
YAML
name: ci
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version-file: go.mod
|
|
|
|
- name: Lint
|
|
run: make lint
|
|
|
|
- name: Test
|
|
run: make test
|
|
|
|
- name: Install GoReleaser
|
|
uses: https://github.com/goreleaser/goreleaser-action@v5
|
|
with:
|
|
install-only: true
|
|
|
|
- name: GoReleaser Check
|
|
run: |
|
|
unset GITHUB_TOKEN
|
|
goreleaser release --snapshot --skip=publish --clean
|
|
env:
|
|
GORELEASER_CURRENT_TAG: v0.0.0
|