[gh-actions] Bump actions/upload-artifact from 3 to 4 #224
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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@v4 | |
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@v3 | |
with: | |
version: latest | |
args: build --rm-dist --snapshot | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Upload assets | |
if: env.build_artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: rabtap-binaries | |
path: dist/* |