Skip to content

[gh-actions] Bump goreleaser/goreleaser-action from 3 to 6 (#93) #229

[gh-actions] Bump goreleaser/goreleaser-action from 3 to 6 (#93)

[gh-actions] Bump goreleaser/goreleaser-action from 3 to 6 (#93) #229

Workflow file for this run

---
on:
push:
branches:
- master
pull_request:
branches:
- master
env:
GO_VERSION: "1.22.5"
GO_LANG_CI_LINT_VERSION: "v1.60.1"
name: run tests
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- name: Checkout code
uses: actions/checkout@v4
- name: Run linters
uses: golangci/golangci-lint-action@v6
with:
version: ${{ env.GO_LANG_CI_LINT_VERSION }}
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: create certificates
run: cd inttest/pki && ./mkcerts.sh
- name: Run RabbitMQ
run: cd inttest/rabbitmq && docker compose up -d
- name: Install Go
if: success()
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- name: wait for RabbitMQ becoming ready
run:
timeout 30 sh -c "while true; do curl -s http://guest:password@localhost:15672/api/exchanges/%2f/amq.topic && break || sleep 3; done"
- name: Run tests
run: make test
- name: Coveralls
uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.github_token }}
file: coverage.out
format: golang
- name: Build release artifacts
if: env.build_artifacts # currently disabled
uses: goreleaser/goreleaser-action@v6
with:
version: latest
args: build ---clean --snapshot
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload assets
if: env.build_artifacts
uses: actions/upload-artifact@v3
with:
name: rabtap-binaries
path: dist/*