diff options
| author | Dax Raad <[email protected]> | 2026-03-10 17:17:11 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2026-03-10 17:17:11 -0400 |
| commit | 556703f8ab593f391508a75603aed54dc065e3b5 (patch) | |
| tree | daf87548f7579cf3bb3a7009a2d1bd7c93c0bcae /.github/workflows | |
| parent | 6b9f8fb9b3ec48859c2db0c230d0cab69f6ae727 (diff) | |
| download | opencode-556703f8ab593f391508a75603aed54dc065e3b5.tar.gz opencode-556703f8ab593f391508a75603aed54dc065e3b5.zip | |
ci: cancel duplicate workflow runs and add read permissions
- Add concurrency settings to cancel outdated runs when new commits are pushed
- Add contents: read permission for security hardening
- Remove redundant required job that checked test results
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/test.yml | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f7b00516f..d9eded3f1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,6 +6,14 @@ on: - dev pull_request: workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +permissions: + contents: read + jobs: unit: name: unit (${{ matrix.settings.name }}) @@ -86,18 +94,3 @@ jobs: path: | packages/app/e2e/test-results packages/app/e2e/playwright-report - - required: - name: test (linux) - runs-on: blacksmith-4vcpu-ubuntu-2404 - needs: - - unit - - e2e - if: always() - steps: - - name: Verify upstream test jobs passed - run: | - echo "unit=${{ needs.unit.result }}" - echo "e2e=${{ needs.e2e.result }}" - test "${{ needs.unit.result }}" = "success" - test "${{ needs.e2e.result }}" = "success" |
