diff --git a/.github/workflows/binaries_dev.yml b/.github/workflows/binaries_dev.yml index 851f7368a..ed4280d37 100644 --- a/.github/workflows/binaries_dev.yml +++ b/.github/workflows/binaries_dev.yml @@ -3,6 +3,11 @@ name: "go: build dev binaries" on: push: branches: [ master ] + paths: + - 'weed/**' + - 'go.mod' + - 'go.sum' + - '.github/workflows/binaries_dev.yml' concurrency: group: binaries-dev-${{ github.ref }} diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index bffe122a2..e9ec91859 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -2,6 +2,11 @@ name: "Code Scanning - Action" on: pull_request: + paths: + - '**/*.go' + - 'go.mod' + - 'go.sum' + - '.github/workflows/codeql.yml' concurrency: group: ${{ github.head_ref }}/codeql diff --git a/.github/workflows/container_dev.yml b/.github/workflows/container_dev.yml index 2d8ea5070..6ccca0a1e 100644 --- a/.github/workflows/container_dev.yml +++ b/.github/workflows/container_dev.yml @@ -3,6 +3,12 @@ name: "docker: build dev containers" on: push: branches: [ master ] + paths: + - 'weed/**' + - 'docker/**' + - 'go.mod' + - 'go.sum' + - '.github/workflows/container_dev.yml' permissions: contents: read diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index cd20839aa..11a1346d3 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -3,8 +3,20 @@ name: "End to End" on: push: branches: [ master ] + paths: + - 'weed/**' + - 'docker/**' + - 'go.mod' + - 'go.sum' + - '.github/workflows/e2e.yml' pull_request: branches: [ master ] + paths: + - 'weed/**' + - 'docker/**' + - 'go.mod' + - 'go.sum' + - '.github/workflows/e2e.yml' concurrency: group: ${{ github.head_ref }}/e2e diff --git a/.github/workflows/ec-integration-tests.yml b/.github/workflows/ec-integration-tests.yml index 14899d6ca..5a99dfc56 100644 --- a/.github/workflows/ec-integration-tests.yml +++ b/.github/workflows/ec-integration-tests.yml @@ -3,8 +3,20 @@ name: "EC Integration Tests" on: push: branches: [ master ] + paths: + - 'weed/**' + - 'test/erasure_coding/**' + - 'go.mod' + - 'go.sum' + - '.github/workflows/ec-integration-tests.yml' pull_request: branches: [ master ] + paths: + - 'weed/**' + - 'test/erasure_coding/**' + - 'go.mod' + - 'go.sum' + - '.github/workflows/ec-integration-tests.yml' permissions: contents: read diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 8c97bed1e..7af21292a 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -3,8 +3,18 @@ name: "go: build binary" on: push: branches: [ master ] + paths: + - '**/*.go' + - 'go.mod' + - 'go.sum' + - '.github/workflows/go.yml' pull_request: branches: [ master ] + paths: + - '**/*.go' + - 'go.mod' + - 'go.sum' + - '.github/workflows/go.yml' concurrency: group: ${{ github.head_ref }}/go diff --git a/.github/workflows/kafka-quicktest.yml b/.github/workflows/kafka-quicktest.yml index 441154984..aab3c1442 100644 --- a/.github/workflows/kafka-quicktest.yml +++ b/.github/workflows/kafka-quicktest.yml @@ -3,8 +3,24 @@ name: "Kafka Quick Test (Load Test with Schema Registry)" on: push: branches: [ master ] + paths: + - 'weed/mq/**' + - 'weed/pb/mq_pb/**' + - 'weed/pb/schema_pb/**' + - 'test/kafka/**' + - 'go.mod' + - 'go.sum' + - '.github/workflows/kafka-quicktest.yml' pull_request: branches: [ master ] + paths: + - 'weed/mq/**' + - 'weed/pb/mq_pb/**' + - 'weed/pb/schema_pb/**' + - 'test/kafka/**' + - 'go.mod' + - 'go.sum' + - '.github/workflows/kafka-quicktest.yml' workflow_dispatch: # Allow manual trigger concurrency: diff --git a/.github/workflows/kafka-tests.yml b/.github/workflows/kafka-tests.yml index 81205d6ef..081a8300a 100644 --- a/.github/workflows/kafka-tests.yml +++ b/.github/workflows/kafka-tests.yml @@ -3,8 +3,24 @@ name: "Kafka Gateway Tests" on: push: branches: [ master ] + paths: + - 'weed/mq/**' + - 'weed/pb/mq_pb/**' + - 'weed/pb/schema_pb/**' + - 'test/kafka/**' + - 'go.mod' + - 'go.sum' + - '.github/workflows/kafka-tests.yml' pull_request: branches: [ master ] + paths: + - 'weed/mq/**' + - 'weed/pb/mq_pb/**' + - 'weed/pb/schema_pb/**' + - 'test/kafka/**' + - 'go.mod' + - 'go.sum' + - '.github/workflows/kafka-tests.yml' concurrency: group: ${{ github.head_ref }}/kafka-tests diff --git a/.github/workflows/plugin-workers.yml b/.github/workflows/plugin-workers.yml index 61fa0fe45..a09f36b87 100644 --- a/.github/workflows/plugin-workers.yml +++ b/.github/workflows/plugin-workers.yml @@ -3,8 +3,20 @@ 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' permissions: contents: read diff --git a/.github/workflows/postgres-tests.yml b/.github/workflows/postgres-tests.yml index d8fd1272e..0eed1dad2 100644 --- a/.github/workflows/postgres-tests.yml +++ b/.github/workflows/postgres-tests.yml @@ -3,8 +3,24 @@ name: "PostgreSQL Gateway Tests" on: push: branches: [ master ] + paths: + - 'weed/server/postgres/**' + - 'weed/query/**' + - 'weed/mq/**' + - 'test/postgres/**' + - 'go.mod' + - 'go.sum' + - '.github/workflows/postgres-tests.yml' pull_request: branches: [ master ] + paths: + - 'weed/server/postgres/**' + - 'weed/query/**' + - 'weed/mq/**' + - 'test/postgres/**' + - 'go.mod' + - 'go.sum' + - '.github/workflows/postgres-tests.yml' concurrency: group: ${{ github.head_ref }}/postgres-tests diff --git a/.github/workflows/s3-example-integration-tests.yml b/.github/workflows/s3-example-integration-tests.yml index 447e362ec..aaf6f83db 100644 --- a/.github/workflows/s3-example-integration-tests.yml +++ b/.github/workflows/s3-example-integration-tests.yml @@ -2,7 +2,16 @@ name: "S3 Authenticated Integration Tests" on: pull_request: - + paths: + - 'weed/s3api/**' + - 'weed/iam/**' + - 'weed/filer/**' + - 'weed/server/**' + - 'test/s3/normal/**' + - 'go.mod' + - 'go.sum' + - '.github/workflows/s3-example-integration-tests.yml' + concurrency: group: ${{ github.head_ref }}/s3-integration-tests cancel-in-progress: true diff --git a/.github/workflows/s3-filer-group-tests.yml b/.github/workflows/s3-filer-group-tests.yml index 8e86f788c..988a95c08 100644 --- a/.github/workflows/s3-filer-group-tests.yml +++ b/.github/workflows/s3-filer-group-tests.yml @@ -2,7 +2,15 @@ name: "S3 Filer Group Tests" on: pull_request: - + paths: + - 'weed/s3api/**' + - 'weed/filer/**' + - 'weed/server/**' + - 'test/s3/filer_group/**' + - 'go.mod' + - 'go.sum' + - '.github/workflows/s3-filer-group-tests.yml' + concurrency: group: ${{ github.head_ref }}/s3-filer-group-tests cancel-in-progress: true diff --git a/.github/workflows/s3-go-tests.yml b/.github/workflows/s3-go-tests.yml index ffd7c2db2..10872f9d2 100644 --- a/.github/workflows/s3-go-tests.yml +++ b/.github/workflows/s3-go-tests.yml @@ -2,7 +2,15 @@ name: "S3 Go Tests" on: pull_request: - + paths: + - 'weed/s3api/**' + - 'weed/filer/**' + - 'weed/server/**' + - 'test/s3/**' + - 'go.mod' + - 'go.sum' + - '.github/workflows/s3-go-tests.yml' + concurrency: group: ${{ github.head_ref }}/s3-go-tests cancel-in-progress: true diff --git a/.github/workflows/s3-proxy-signature-tests.yml b/.github/workflows/s3-proxy-signature-tests.yml index 73da34702..be7e36107 100644 --- a/.github/workflows/s3-proxy-signature-tests.yml +++ b/.github/workflows/s3-proxy-signature-tests.yml @@ -3,8 +3,22 @@ name: "S3 Proxy Signature Tests" on: push: branches: [ master ] + paths: + - 'weed/s3api/**' + - 'weed/server/**' + - 'test/s3/proxy_signature/**' + - 'go.mod' + - 'go.sum' + - '.github/workflows/s3-proxy-signature-tests.yml' pull_request: branches: [ master ] + paths: + - 'weed/s3api/**' + - 'weed/server/**' + - 'test/s3/proxy_signature/**' + - 'go.mod' + - 'go.sum' + - '.github/workflows/s3-proxy-signature-tests.yml' concurrency: group: ${{ github.head_ref || github.ref }}/s3-proxy-signature-tests diff --git a/.github/workflows/s3-tables-tests.yml b/.github/workflows/s3-tables-tests.yml index 2b4404eee..1a8c02bd2 100644 --- a/.github/workflows/s3-tables-tests.yml +++ b/.github/workflows/s3-tables-tests.yml @@ -2,6 +2,14 @@ name: "S3 Tables Integration Tests" on: pull_request: + paths: + - 'weed/s3api/**' + - 'weed/filer/**' + - 'weed/server/**' + - 'test/s3tables/**' + - 'go.mod' + - 'go.sum' + - '.github/workflows/s3-tables-tests.yml' permissions: contents: read diff --git a/.github/workflows/s3tests.yml b/.github/workflows/s3tests.yml index 3ba43e816..a7838dd45 100644 --- a/.github/workflows/s3tests.yml +++ b/.github/workflows/s3tests.yml @@ -3,8 +3,26 @@ name: "Ceph S3 tests" on: push: branches: [ master ] + paths: + - 'weed/s3api/**' + - 'weed/filer/**' + - 'weed/server/**' + - 'weed/iam/**' + - 'test/s3/compatibility/**' + - 'go.mod' + - 'go.sum' + - '.github/workflows/s3tests.yml' pull_request: branches: [ master ] + paths: + - 'weed/s3api/**' + - 'weed/filer/**' + - 'weed/server/**' + - 'weed/iam/**' + - 'test/s3/compatibility/**' + - 'go.mod' + - 'go.sum' + - '.github/workflows/s3tests.yml' concurrency: group: ${{ github.head_ref }}/s3tests diff --git a/.github/workflows/test-s3-over-https-using-awscli.yml b/.github/workflows/test-s3-over-https-using-awscli.yml index fe4e5b3c4..cea8f2614 100644 --- a/.github/workflows/test-s3-over-https-using-awscli.yml +++ b/.github/workflows/test-s3-over-https-using-awscli.yml @@ -3,8 +3,20 @@ name: "test s3 over https using aws-cli" on: push: branches: [master, test-https-s3-awscli] + paths: + - 'weed/s3api/**' + - 'weed/server/**' + - 'go.mod' + - 'go.sum' + - '.github/workflows/test-s3-over-https-using-awscli.yml' pull_request: branches: [master, test-https-s3-awscli] + paths: + - 'weed/s3api/**' + - 'weed/server/**' + - 'go.mod' + - 'go.sum' + - '.github/workflows/test-s3-over-https-using-awscli.yml' env: AWS_ACCESS_KEY_ID: some_access_key1 diff --git a/.github/workflows/tls-rotation-tests.yml b/.github/workflows/tls-rotation-tests.yml index 7b010e430..c9b69334b 100644 --- a/.github/workflows/tls-rotation-tests.yml +++ b/.github/workflows/tls-rotation-tests.yml @@ -3,8 +3,20 @@ name: "TLS Rotation Integration Tests" on: push: branches: [ master ] + paths: + - 'weed/**' + - 'test/tls_rotation/**' + - 'go.mod' + - 'go.sum' + - '.github/workflows/tls-rotation-tests.yml' pull_request: branches: [ master ] + paths: + - 'weed/**' + - 'test/tls_rotation/**' + - 'go.mod' + - 'go.sum' + - '.github/workflows/tls-rotation-tests.yml' permissions: contents: read diff --git a/.github/workflows/tus-tests.yml b/.github/workflows/tus-tests.yml index 2acfa6e1d..bd5a7bd2f 100644 --- a/.github/workflows/tus-tests.yml +++ b/.github/workflows/tus-tests.yml @@ -2,6 +2,13 @@ name: "TUS Protocol Tests" on: pull_request: + paths: + - 'weed/server/**' + - 'weed/filer/**' + - 'test/tus/**' + - 'go.mod' + - 'go.sum' + - '.github/workflows/tus-tests.yml' concurrency: group: ${{ github.head_ref || github.ref }}/tus-tests diff --git a/.github/workflows/vacuum-integration-tests.yml b/.github/workflows/vacuum-integration-tests.yml index 26d6b8c75..158f1a20b 100644 --- a/.github/workflows/vacuum-integration-tests.yml +++ b/.github/workflows/vacuum-integration-tests.yml @@ -3,8 +3,20 @@ name: "Vacuum Integration Tests" on: push: branches: [ master ] + paths: + - 'weed/**' + - 'test/vacuum/**' + - 'go.mod' + - 'go.sum' + - '.github/workflows/vacuum-integration-tests.yml' pull_request: branches: [ master ] + paths: + - 'weed/**' + - 'test/vacuum/**' + - 'go.mod' + - 'go.sum' + - '.github/workflows/vacuum-integration-tests.yml' permissions: contents: read