mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-25 14:30:43 +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>
56 lines
1.2 KiB
YAML
56 lines
1.2 KiB
YAML
name: "Plugin Worker Integration Tests"
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
paths:
|
|
- 'weed/**'
|
|
- 'test/plugin_workers/**'
|
|
- 'go.mod'
|
|
- 'go.sum'
|
|
- '.github/workflows/plugin-workers.yml'
|
|
pull_request:
|
|
branches: [ master ]
|
|
paths:
|
|
- 'weed/**'
|
|
- 'test/plugin_workers/**'
|
|
- 'go.mod'
|
|
- 'go.sum'
|
|
- '.github/workflows/plugin-workers.yml'
|
|
|
|
concurrency:
|
|
group: ${{ github.head_ref }}/plugin-workers
|
|
cancel-in-progress: true
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
plugin-worker:
|
|
name: "Plugin Worker: ${{ matrix.worker }}"
|
|
runs-on: ubuntu-22.04
|
|
timeout-minutes: 10
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- worker: erasure_coding
|
|
path: test/plugin_workers/erasure_coding
|
|
- worker: vacuum
|
|
path: test/plugin_workers/vacuum
|
|
- worker: volume_balance
|
|
path: test/plugin_workers/volume_balance
|
|
|
|
steps:
|
|
- name: Set up Go 1.x
|
|
uses: actions/setup-go@v7
|
|
with:
|
|
go-version: ^1.26
|
|
id: go
|
|
|
|
- name: Check out code into the Go module directory
|
|
uses: actions/checkout@v7
|
|
|
|
- name: Run plugin worker tests
|
|
run: go test -v ./${{ matrix.path }}
|