Merge pull request #991 from ember-cli/pnpm #1741
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 Build | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - main | |
| - release* | |
| - 'v*' | |
| tags: | |
| - '*' | |
| pull_request: | |
| concurrency: | |
| group: ci-${{ github.head_ref || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| timeout-minutes: 10 | |
| name: Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| cache: pnpm | |
| - run: pnpm install | |
| - run: pnpm run lint | |
| - run: pnpm run test:ember | |
| working-directory: ./test-app/ | |
| floating-dependencies: | |
| timeout-minutes: 10 | |
| name: "Floating Dependencies" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| cache: pnpm | |
| - run: pnpm install --no-lockfile | |
| - run: pnpm test | |
| working-directory: ./test-app/ | |
| try-scenarios: | |
| timeout-minutes: 10 | |
| name: "Try: ${{ matrix.ember-try-scenario }}" | |
| runs-on: ubuntu-latest | |
| needs: test | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| ember-try-scenario: | |
| - ember-lts-4.12 | |
| - ember-lts-5.4 | |
| - ember-lts-5.8 | |
| - ember-release | |
| - ember-beta | |
| - ember-canary | |
| - embroider-safe | |
| - embroider-optimized | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| cache: pnpm | |
| - run: pnpm install | |
| - name: test | |
| run: pnpm ember try:one ${{ matrix.ember-try-scenario }} --skip-cleanup | |
| working-directory: ./test-app/ | |
| publish: | |
| name: Publish to npm | |
| if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Install node | |
| uses: volta-cli/action@v4 | |
| with: | |
| node-version: 16.x | |
| registry-url: 'https://registry.npmjs.org' | |
| - uses: actions/cache@v3 | |
| id: npm-cache | |
| with: | |
| path: '**/node_modules' | |
| key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-npm- | |
| - name: install dependencies | |
| if: steps.npm-cache.outputs.cache-hit != 'true' | |
| run: npm ci | |
| - name: auto-dist-tag | |
| run: npx auto-dist-tag --write | |
| working-directory: './addon/' | |
| - name: publish to npm | |
| run: npm publish | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH }} | |
| working-directory: './addon/' |