Skip to content

Commit

Permalink
ci: add aggregate ci and lint jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
galargh committed Aug 13, 2024
1 parent 1b1c69e commit c2a86e0
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/v-next-ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: vNext CI

on:
merge_group:
push:
branches:
- v-next
Expand Down Expand Up @@ -108,6 +109,23 @@ jobs:
- name: Lint
run: pnpm lint

lint-aggregate:
needs: lint

if: !cancelled()

name: lint
runs-on: ubuntu-latest

steps:
- env:
result: ${{ needs.lint.result }}
run: |
if [[ "$result" == "failure" ]]; then
exit 1
fi
shell: bash

ci:
needs: list-packages

Expand Down Expand Up @@ -137,3 +155,20 @@ jobs:
run: pnpm build
- name: Run tests
run: pnpm run test

ci-aggregate:
needs: ci

if: !cancelled()

name: ci
runs-on: ubuntu-latest

steps:
- env:
result: ${{ needs.ci.result }}
run: |
if [[ "$result" == "failure" ]]; then
exit 1
fi
shell: bash

0 comments on commit c2a86e0

Please sign in to comment.