Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
83 changes: 38 additions & 45 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,31 @@ on:
workflow_dispatch:
push:
branches:
- master
- master
pull_request:

jobs:
lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'

- run: npm ci
- run: npm run lint
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- run: pnpm install
- run: pnpm run lint

test:
needs: lint

runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
node:
node-version:
- 20
- 22
- 24
Expand All @@ -41,43 +39,38 @@ jobs:
exclude:
- os: macos-latest
test-command: test:fast

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: 'npm'

# for test cache hits
- run: npm i -g ember-cli@2.11.1

- run: npm ci
- run: npm run ${{ matrix.test-command }} -- --retries 1
timeout-minutes: 20
env:
NODE_LTS: ${{ matrix.node != '*' }}
DEBUG: ember-cli-update,boilerplate-update,git-diff-apply
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
# for test cache hits
- run: pnpm add -g ember-cli@2.11.1
- run: pnpm install
- run: pnpm run ${{ matrix.test-command }} -- --retries 1
timeout-minutes: 20
env:
NODE_LTS: ${{ matrix.node != '*' }}
DEBUG: ember-cli-update,boilerplate-update,git-diff-apply

ember-cli-update:
needs: test
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}

- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'

- uses: kellyselden/ember-cli-update-action@v5
with:
autofix_command: npm run lint -- --fix
ignore_to: true
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- uses: kellyselden/ember-cli-update-action@v5
with:
autofix_command: npm run lint -- --fix
ignore_to: true
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ The CLI attempts to be a thin wrapper of [boilerplate-update](https://github.com

As a global executable:

`npm install -g ember-cli-update`
`pnpm add -g ember-cli-update`

As an Ember CLI command:

Expand Down Expand Up @@ -276,7 +276,7 @@ Let's update from Ember CLI 2.18.2 to Ember CLI 3.1.4
First, make sure you are on the latest ember-cli-update version for good measure.

```
npm install -g ember-cli-update
pnpm add -g ember-cli-update
```

Then, run all compatible codemods against your current version. Since codemods are downloaded on the fly, they can be updated (and new ones added) without even getting a new version of ember-cli-update. Also, we may add additional codemods targeting your older version of Ember.js.
Expand Down
Loading