CI #4399
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 | |
- 'v*' | |
pull_request: {} | |
schedule: | |
- cron: '0 3 * * *' # daily, at 3am | |
env: | |
PNPM_VERSION: 9.6.0 | |
jobs: | |
lint: | |
name: Linting | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4.1.7 | |
- uses: pnpm/action-setup@v4.0.0 | |
with: | |
version: ${{ env.PNPM_VERSION }} | |
- uses: actions/setup-node@v4.0.3 | |
with: | |
node-version: 22.x | |
cache: pnpm | |
- run: pnpm install | |
- run: pnpm run lint | |
test: | |
name: Node Tests | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
node-version: [18.x, 20.x, 22.x] | |
steps: | |
- uses: actions/checkout@v4.1.7 | |
- uses: pnpm/action-setup@v4.0.0 | |
with: | |
version: ${{ env.PNPM_VERSION }} | |
- uses: actions/setup-node@v4.0.3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: pnpm | |
- run: pnpm install | |
- run: pnpm run test:node | |
ember-try-scenarios: | |
name: Ember Tests (${{ matrix.try-scenario }}) | |
needs: [test] | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
try-scenario: | |
- ember-lts-3.8 | |
- ember-lts-3.12 | |
- ember-lts-3.16 | |
- ember-lts-3.20 | |
- ember-lts-3.24 | |
- ember-lts-3.28 | |
# - ember-release | |
# - ember-beta | |
# - ember-canary | |
- embroider-safe | |
- embroider-optimized | |
steps: | |
- uses: actions/checkout@v4.1.7 | |
- uses: pnpm/action-setup@v4.0.0 | |
with: | |
version: ${{ env.PNPM_VERSION }} | |
- uses: actions/setup-node@v4.0.3 | |
with: | |
node-version: 22.x | |
cache: pnpm | |
- run: pnpm install | |
- run: pnpm ember try:one ${{ matrix.try-scenario }} --skip-cleanup --- echo "${{ matrix.try-scenario }} installed" | |
- run: pnpm test:keep | |
- run: pnpm test:strip |