mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-25 06:20:42 +01:00
PR-triggered workflows without a concurrency group keep running (and holding runner slots) after a force-push or quick follow-up commit supersedes them. Add the same group/cancel-in-progress block the go workflow already uses, keyed on head_ref, to the remaining PR workflows. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
51 lines
1.1 KiB
YAML
51 lines
1.1 KiB
YAML
name: Telemetry Integration Tests
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
paths:
|
|
- 'telemetry/**'
|
|
- 'weed/telemetry/**'
|
|
- '.github/workflows/telemetry-integration.yml'
|
|
pull_request:
|
|
branches: [ master ]
|
|
paths:
|
|
- 'telemetry/**'
|
|
- 'weed/telemetry/**'
|
|
- '.github/workflows/telemetry-integration.yml'
|
|
|
|
concurrency:
|
|
group: ${{ github.head_ref }}/telemetry-integration
|
|
cancel-in-progress: true
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
telemetry-integration-test:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 5
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v7
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v7
|
|
with:
|
|
go-version-file: 'go.mod'
|
|
|
|
- name: Build telemetry server
|
|
run: cd telemetry/server && go build -o telemetry-server .
|
|
|
|
- name: Run telemetry integration test
|
|
run: go run telemetry/test/integration.go
|
|
|
|
- name: Upload test logs on failure
|
|
if: failure()
|
|
uses: actions/upload-artifact@v7
|
|
with:
|
|
name: telemetry-test-logs
|
|
path: telemetry-server-test.log
|
|
retention-days: 7
|