Bump github.com/golangci/golangci-lint from 1.61.0 to 1.62.0 in /tools/golangci in the golangci group #4466
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
--- | |
name: Dance | |
on: | |
pull_request: | |
types: | |
- unlabeled # if GitHub Actions stuck, add and remove "not ready" label to force rebuild | |
- opened | |
- reopened | |
- synchronize | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: "12 3 * * *" # after FerretDB's Docker workflow | |
workflow_dispatch: | |
inputs: | |
ferretdb_image: | |
description: FerretDB Docker image | |
default: ghcr.io/ferretdb/ferretdb-dev:main | |
required: false | |
postgres_image: | |
description: PostgreSQL Docker image | |
default: postgres:16.4 | |
required: false | |
env: | |
GOPATH: /home/runner/go | |
GOCACHE: /home/runner/go/cache | |
GOLANGCI_LINT_CACHE: /home/runner/go/cache/lint | |
GOMODCACHE: /home/runner/go/mod | |
GOPROXY: https://proxy.golang.org | |
GOTOOLCHAIN: local | |
jobs: | |
dance: | |
name: ${{ matrix.project }} | |
# https://www.ubicloud.com/docs/github-actions-integration/price-performance | |
# https://www.ubicloud.com/docs/about/pricing#github-actions | |
# https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#per-minute-rates | |
runs-on: ubicloud-standard-8 | |
timeout-minutes: 45 | |
# Do not run this job in parallel for any PR change or branch push | |
# to save some resources. | |
concurrency: | |
group: ${{ github.workflow }}-dance-${{ matrix.project }}-${{ github.head_ref || github.ref_name }} | |
cancel-in-progress: true | |
if: github.event_name != 'pull_request' || !contains(github.event.pull_request.labels.*.name, 'not ready') | |
strategy: | |
fail-fast: false | |
matrix: | |
project: | |
- dotnet-example | |
- java-example | |
- python-example | |
- mongo-tools | |
- ycsb-workloada | |
- ycsb-workloadb | |
- ycsb-workloadc | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Setup Go | |
uses: FerretDB/github-actions/setup-go@main | |
with: | |
cache-key: dance | |
- name: Install Task | |
run: go generate -x | |
working-directory: tools | |
- name: Start environment | |
run: bin/task env-up-detach | |
env: | |
FERRETDB_IMAGE: ${{ inputs.ferretdb_image || 'ghcr.io/ferretdb/ferretdb-dev:main' }} | |
POSTGRES_IMAGE: ${{ inputs.postgres_image || 'postgres:16.4' }} | |
- name: Connect to Tailscale | |
if: github.event_name != 'pull_request' | |
uses: tailscale/github-action@v2 | |
with: | |
oauth-client-id: ${{ secrets.TAILSCALE_CLIENT_ID }} | |
oauth-secret: ${{ secrets.TAILSCALE_SECRET }} | |
tags: tag:ci | |
version: 1.72.1 | |
- name: Run init | |
run: bin/task init build | |
- name: Dance! | |
run: bin/task dance CONFIG=${{ matrix.project }}.yml | |
env: | |
DANCE_PUSH: ${{ secrets.DANCE_PUSH }} | |
- name: Collect logs | |
if: failure() | |
run: | | |
bin/task env-logs-collect > /tmp/compose-logs.txt | |
- name: Compress logs before upload | |
if: failure() | |
run: zip -q -9 compose-logs.zip /tmp/compose-logs.txt | |
- name: Upload logs | |
if: failure() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: compose-logs-${{ matrix.project }} | |
path: compose-logs.zip | |
retention-days: 3 | |
# ignore `go mod tidy` being applied to the Go driver, etc | |
- name: Check dirty | |
run: | | |
git status --ignore-submodules=none | |
git diff --ignore-submodules=all --exit-code |