CI #543
This file contains hidden or 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: | |
| - main | |
| - 'v*' # older version branches | |
| tags: | |
| - '*' | |
| pull_request: {} | |
| schedule: | |
| - cron: '0 6 * * 0' # weekly, on sundays | |
| jobs: | |
| lint: | |
| name: Linting | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| cache: 'pnpm' | |
| - run: pnpm install | |
| - run: pnpm lint | |
| test: | |
| name: Tests | |
| runs-on: ubuntu-latest | |
| outputs: | |
| matrix: ${{ steps.set-matrix.outputs.matrix }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| cache: 'pnpm' | |
| - run: pnpm install | |
| - run: pnpm test | |
| # For the Try Scenarios | |
| - id: set-matrix | |
| run: | | |
| echo "matrix=$(pnpm -s dlx @embroider/try list)" >> $GITHUB_OUTPUT | |
| floating-test: | |
| name: Floating dependencies | |
| needs: 'test' | |
| strategy: | |
| fail-fast: false | |
| matrix: ${{fromJson(needs.test.outputs.matrix)}} | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| cache: 'pnpm' | |
| node-version: ${{ matrix.node }} | |
| - run: pnpm dlx @embroider/try apply ${{ matrix.name }} | |
| - run: pnpm install --no-lockfile | |
| - run: pnpm test | |
| env: ${{ matrix.env }} |