Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 0 additions & 31 deletions .github/actions/report-fork-status/action.yml

This file was deleted.

38 changes: 17 additions & 21 deletions .github/workflows/alioss-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,38 @@ name: Alioss Integration Tests

on:
workflow_dispatch:
inputs:
pr_ref:
description: 'SHA of the PR head commit (for fork PRs)'
required: false
default: ''
pull_request:
workflow_call:
pull_request_target:
push:
branches:
- main
workflow_call:

concurrency:
group: alioss-integration
cancel-in-progress: false

jobs:
alioss-general-integration-tests:
name: Alioss General Integration Tests
gate:
name: Approval gate (fork PRs only)
runs-on: ubuntu-latest
# Skip fork PRs; run for all other triggers (push, dispatch, workflow_call, schedule, etc.)
if: >
github.event_name != 'pull_request' ||
github.event.pull_request.head.repo.full_name == github.repository
permissions:
statuses: write
github.event_name == 'pull_request_target' &&
github.event.pull_request.head.repo.full_name != github.repository
environment: fork-pr-integration-test
steps:
- run: echo "Fork PR approved, proceeding with integration tests"

alioss-general-integration-tests:
name: Alioss General Integration Tests
runs-on: ubuntu-latest
needs: [gate]
if: always() && (needs.gate.result == 'success' || needs.gate.result == 'skipped')
steps:
- name: Checkout code
uses: actions/checkout@v7
with:
ref: ${{ inputs.pr_ref || github.sha }}
ref: ${{ github.event.pull_request.head.sha || github.sha }}
allow-unsafe-pr-checkout: true
- name: Set up Go
uses: actions/setup-go@v7
with:
Expand All @@ -56,9 +58,3 @@ jobs:
export access_key_id="${{ secrets.ALI_ACCESS_KEY_ID }}"
export access_key_secret="${{ secrets.ALI_ACCESS_KEY_SECRET }}"
./.github/scripts/alioss/teardown.sh
- name: Report fork PR status
if: always() && inputs.pr_ref != ''
uses: ./.github/actions/report-fork-status
with:
pr_ref: ${{ inputs.pr_ref }}
name: Alioss General Integration Tests
38 changes: 17 additions & 21 deletions .github/workflows/azurebs-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,38 @@ name: Azurebs Integration Tests

on:
workflow_dispatch:
inputs:
pr_ref:
description: 'SHA of the PR head commit (for fork PRs)'
required: false
default: ''
pull_request:
workflow_call:
pull_request_target:
push:
branches:
- main
workflow_call:

concurrency:
group: azurebs-integration
cancel-in-progress: false

jobs:
azurecloud-environment-integration-tests:
name: AzureCloud Environment Integration Tests
gate:
name: Approval gate (fork PRs only)
runs-on: ubuntu-latest
# Skip fork PRs; run for all other triggers (push, dispatch, workflow_call, schedule, etc.)
if: >
github.event_name != 'pull_request' ||
github.event.pull_request.head.repo.full_name == github.repository
permissions:
statuses: write
github.event_name == 'pull_request_target' &&
github.event.pull_request.head.repo.full_name != github.repository
environment: fork-pr-integration-test
steps:
- run: echo "Fork PR approved, proceeding with integration tests"

azurecloud-environment-integration-tests:
name: AzureCloud Environment Integration Tests
runs-on: ubuntu-latest
needs: [gate]
if: always() && (needs.gate.result == 'success' || needs.gate.result == 'skipped')
steps:
- name: Checkout code
uses: actions/checkout@v7
with:
ref: ${{ inputs.pr_ref || github.sha }}
ref: ${{ github.event.pull_request.head.sha || github.sha }}
allow-unsafe-pr-checkout: true
- name: Set up Go
uses: actions/setup-go@v7
with:
Expand All @@ -54,9 +56,3 @@ jobs:
export azure_storage_account="${{ secrets.AZURE_STORAGE_ACCOUNT }}"
export azure_storage_key="${{ secrets.AZURE_STORAGE_KEY }}"
./.github/scripts/azurebs/teardown.sh
- name: Report fork PR status
if: always() && inputs.pr_ref != ''
uses: ./.github/actions/report-fork-status
with:
pr_ref: ${{ inputs.pr_ref }}
name: AzureCloud Environment Integration Tests
37 changes: 16 additions & 21 deletions .github/workflows/dav-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,38 @@ name: DAV Integration Tests

on:
workflow_dispatch:
inputs:
pr_ref:
description: 'SHA of the PR head commit (for fork PRs)'
required: false
default: ''
pull_request:
workflow_call:
pull_request_target:
push:
branches:
- main
workflow_call:

concurrency:
group: dav-integration
cancel-in-progress: false

jobs:
gate:
name: Approval gate (fork PRs only)
runs-on: ubuntu-latest
if: >
github.event_name == 'pull_request_target' &&
github.event.pull_request.head.repo.full_name != github.repository
environment: fork-pr-integration-test
steps:
- run: echo "Fork PR approved, proceeding with integration tests"

dav-integration:
name: DAV Integration Tests
runs-on: ubuntu-latest
# Skip fork PRs; run for all other triggers (push, dispatch, workflow_call, schedule, etc.)
if: >
github.event_name != 'pull_request' ||
github.event.pull_request.head.repo.full_name == github.repository
permissions:
statuses: write
needs: [gate]
if: always() && (needs.gate.result == 'success' || needs.gate.result == 'skipped')
steps:
- name: Checkout code
uses: actions/checkout@v7
with:
ref: ${{ inputs.pr_ref || github.sha }}
ref: ${{ github.event.pull_request.head.sha || github.sha }}
allow-unsafe-pr-checkout: true

- name: Set up Go
uses: actions/setup-go@v7
Expand All @@ -43,10 +45,3 @@ jobs:

- name: Run DAV Integration Tests
run: ginkgo -r dav/integration/

- name: Report fork PR status
if: always() && inputs.pr_ref != ''
uses: ./.github/actions/report-fork-status
with:
pr_ref: ${{ inputs.pr_ref }}
name: DAV Integration Tests
53 changes: 0 additions & 53 deletions .github/workflows/fork-integration-trigger.yml

This file was deleted.

57 changes: 22 additions & 35 deletions .github/workflows/gcs-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,38 @@ name: GCS Integration Tests

on:
workflow_dispatch:
inputs:
pr_ref:
description: 'SHA of the PR head commit (for fork PRs)'
required: false
default: ''
pull_request:
workflow_call:
pull_request_target:
push:
branches:
- "main"
workflow_call:

concurrency:
group: gcs-integration
cancel-in-progress: false

jobs:
gcs-integration-fast-tests:
name: GCS Integation Fast Tests
gate:
name: Approval gate (fork PRs only)
runs-on: ubuntu-latest
# Skip fork PRs; run for all other triggers (push, dispatch, workflow_call, schedule, etc.)
if: >
github.event_name != 'pull_request' ||
github.event.pull_request.head.repo.full_name == github.repository
permissions:
statuses: write
github.event_name == 'pull_request_target' &&
github.event.pull_request.head.repo.full_name != github.repository
environment: fork-pr-integration-test
steps:
- run: echo "Fork PR approved, proceeding with integration tests"

gcs-integration-fast-tests:
name: GCS Integation Fast Tests
runs-on: ubuntu-latest
needs: [gate]
if: always() && (needs.gate.result == 'success' || needs.gate.result == 'skipped')
steps:
- name: Checkout code
uses: actions/checkout@v7
with:
ref: ${{ inputs.pr_ref || github.sha }}
ref: ${{ github.event.pull_request.head.sha || github.sha }}
allow-unsafe-pr-checkout: true
- name: Set up Go
uses: actions/setup-go@v7
with:
Expand All @@ -55,27 +57,18 @@ jobs:
echo "${{ secrets.GCP_SERVICE_ACCOUNT_BASE64 }}" | base64 -d > /tmp/gcp-key.json
export google_json_key_data="$(cat /tmp/gcp-key.json)"
./.github/scripts/gcs/teardown.sh
- name: Report fork PR status
if: always() && inputs.pr_ref != ''
uses: ./.github/actions/report-fork-status
with:
pr_ref: ${{ inputs.pr_ref }}
name: GCS Integation Fast Tests

gcs-integration-all-tests:
name: GCS Integation All Tests
name: GCS Integation All Tests
runs-on: ubuntu-latest
# Skip fork PRs; run for all other triggers (push, dispatch, workflow_call, schedule, etc.)
if: >
github.event_name != 'pull_request' ||
github.event.pull_request.head.repo.full_name == github.repository
permissions:
statuses: write
needs: [gate]
if: always() && (needs.gate.result == 'success' || needs.gate.result == 'skipped')
steps:
- name: Checkout code
uses: actions/checkout@v7
with:
ref: ${{ inputs.pr_ref || github.sha }}
ref: ${{ github.event.pull_request.head.sha || github.sha }}
allow-unsafe-pr-checkout: true
- name: Set up Go
uses: actions/setup-go@v7
with:
Expand All @@ -98,9 +91,3 @@ jobs:
echo "${{ secrets.GCP_SERVICE_ACCOUNT_BASE64 }}" | base64 -d > /tmp/gcp-key.json
export google_json_key_data="$(cat /tmp/gcp-key.json)"
./.github/scripts/gcs/teardown.sh
- name: Report fork PR status
if: always() && inputs.pr_ref != ''
uses: ./.github/actions/report-fork-status
with:
pr_ref: ${{ inputs.pr_ref }}
name: GCS Integation All Tests
Loading
Loading