Update pnpm to v10 #3009
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: | |
| - master | |
| - 'v*' | |
| pull_request: {} | |
| jobs: | |
| lint: | |
| name: Linting | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 12.x | |
| cache: pnpm | |
| - run: pnpm install --frozen-lockfile | |
| - run: pnpm lint | |
| - run: pnpm prettier --check . | |
| test: | |
| name: Node Tests | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest] | |
| node-version: [12.x, 14.x, 16.x] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: pnpm | |
| - run: pnpm install --frozen-lockfile | |
| - run: pnpm test -- --coverage | |
| try-scenarios: | |
| name: ${{ matrix.try-scenario }} | |
| runs-on: ubuntu-latest | |
| needs: "test" | |
| timeout-minutes: 10 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| try-scenario: | |
| - ember-lts-3.20 | |
| - ember-lts-3.24 | |
| - ember-lts-3.28 | |
| - ember-lts-4.4 | |
| - ember-lts-4.8 | |
| - ember-lts-4.12 | |
| - ember-lts-5.4 | |
| - ember-lts-5.8 | |
| - ember-lts-5.12 | |
| - ember-release | |
| - ember-beta | |
| - ember-canary | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 14.x | |
| cache: pnpm | |
| - run: pnpm install --frozen-lockfile | |
| - run: ./node_modules/.bin/ember try:one ${{ matrix.try-scenario }} |