chore(deps): update dependency next to ^15.1.2 (#461) #1769
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
collect_dirs: | |
runs-on: ubuntu-latest | |
outputs: | |
test_matrix: ${{ steps.run_collect_dirs.outputs.test_matrix }} | |
steps: | |
- uses: actions/checkout@v4 | |
- id: run_collect_dirs | |
run: echo "test_matrix=$(.scripts/build_matrix.py)" >> ${GITHUB_OUTPUT} | |
test: | |
runs-on: ubuntu-latest | |
needs: collect_dirs | |
strategy: | |
matrix: ${{ fromJson(needs.collect_dirs.outputs.test_matrix) }} | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- name: Install npm, yarn and pnpm | |
run: corepack enable | |
- name: Install bun | |
uses: oven-sh/setup-bun@v2 | |
- name: Test | |
run: bash -c ".scripts/test.sh ${{ matrix.package_manager }} ${{ matrix.dirs }}" | |
after_test: | |
runs-on: ubuntu-latest | |
needs: test | |
if: always() | |
steps: | |
- name: Check test results | |
run: | | |
if [[ ${{ contains(needs.test.result, 'failure') }} == 'true' ]]; then | |
echo "One or more tests failed" | |
exit 1 | |
else | |
echo "All tests passed" | |
fi |