mirror of
https://github.com/1Password/onepassword-operator.git
synced 2025-10-22 07:28:06 +00:00
Name the jobs 'run-e2e-tests'
This commit is contained in:
12
.github/workflows/test-e2e-fork.yml
vendored
12
.github/workflows/test-e2e-fork.yml
vendored
@@ -13,7 +13,7 @@ concurrency:
|
|||||||
cancel-in-progress: true # cancel previous job runs for the same branch
|
cancel-in-progress: true # cancel previous job runs for the same branch
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
e2e-tests:
|
run-e2e-tests:
|
||||||
uses: ./.github/workflows/e2e-tests.yml
|
uses: ./.github/workflows/e2e-tests.yml
|
||||||
if: |
|
if: |
|
||||||
github.event_name == 'repository_dispatch' &&
|
github.event_name == 'repository_dispatch' &&
|
||||||
@@ -28,14 +28,14 @@ jobs:
|
|||||||
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
|
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
|
||||||
|
|
||||||
update-check-status:
|
update-check-status:
|
||||||
needs: e2e-tests
|
needs: run-e2e-tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: always() && github.event_name == 'repository_dispatch'
|
if: always() && github.event_name == 'repository_dispatch'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/github-script@v6
|
- uses: actions/github-script@v6
|
||||||
env:
|
env:
|
||||||
ref: ${{ github.event.client_payload.pull_request.head.sha }}
|
ref: ${{ github.event.client_payload.pull_request.head.sha }}
|
||||||
conclusion: ${{ needs.e2e-tests.result }}
|
conclusion: ${{ needs.run-e2e-tests.result }}
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
script: |
|
script: |
|
||||||
@@ -44,7 +44,7 @@ jobs:
|
|||||||
ref: process.env.ref
|
ref: process.env.ref
|
||||||
});
|
});
|
||||||
|
|
||||||
// update the check-external-pr check run
|
// update the 'check-external-pr' check run
|
||||||
const check = checks.check_runs.filter(c => c.name === 'check-external-pr');
|
const check = checks.check_runs.filter(c => c.name === 'check-external-pr');
|
||||||
|
|
||||||
const { data: result } = await github.rest.checks.update({
|
const { data: result } = await github.rest.checks.update({
|
||||||
@@ -54,8 +54,8 @@ jobs:
|
|||||||
conclusion: process.env.conclusion
|
conclusion: process.env.conclusion
|
||||||
});
|
});
|
||||||
|
|
||||||
// update the 'e2e-test' check run
|
// update the 'run-e2e-tests' check run from 'test-e2e.yml' workflow
|
||||||
const check = checks.check_runs.filter(c => c.name === 'e2e-test');
|
const check = checks.check_runs.filter(c => c.name === 'run-e2e-tests');
|
||||||
|
|
||||||
const { data: result } = await github.rest.checks.update({
|
const { data: result } = await github.rest.checks.update({
|
||||||
...context.repo,
|
...context.repo,
|
||||||
|
2
.github/workflows/test-e2e.yml
vendored
2
.github/workflows/test-e2e.yml
vendored
@@ -33,7 +33,7 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
echo "✅ Internal PR detected. Proceeding with tests."
|
echo "✅ Internal PR detected. Proceeding with tests."
|
||||||
|
|
||||||
e2e-test:
|
run-e2e-tests:
|
||||||
needs: check-external-pr
|
needs: check-external-pr
|
||||||
if: always() && (needs.check-external-pr.result == 'success' || github.event_name != 'pull_request')
|
if: always() && (needs.check-external-pr.result == 'success' || github.event_name != 'pull_request')
|
||||||
uses: ./.github/workflows/e2e-tests.yml
|
uses: ./.github/workflows/e2e-tests.yml
|
||||||
|
Reference in New Issue
Block a user