ci: add goreleaser compatibility check

This commit is contained in:
Denis Mishin 2023-08-29 11:12:59 -04:00
parent 5a4acc5cd3
commit abcd987825
2 changed files with 21 additions and 2 deletions

19
.github/workflows/goreleaser-check.yaml vendored Normal file
View file

@ -0,0 +1,19 @@
name: goreleaser-check
on:
pull_request: {}
jobs:
goreleaser-check:
runs-on: ubuntu-latest
steps:
- name: Checkout goreleaser.yaml
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
with:
sparse-checkout: goreleaser.yaml
sparse-checkout-cone-mode: false
- name: Check goreleaser config is compatible with latest version
uses: goreleaser/goreleaser-action@v4.3.0
with:
version: latest
args: check

View file

@ -57,9 +57,9 @@ jobs:
run: gcloud auth configure-docker
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4.3.0
uses: goreleaser/goreleaser-action@v4.4.0
with:
version: v0.184.0
version: v1.20.0
args: release --config .github/goreleaser.yaml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}