Update actions/checkout action to v4 #2698
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: | |
# allow manual running | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
pull_request: | |
schedule: | |
# nightly | |
- cron: '0 0 * * *' | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 14 | |
cache: 'npm' | |
- run: npm ci | |
- run: npm run lint | |
test: | |
needs: lint | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
- macos-latest | |
node: | |
- 14 | |
- 16 | |
- 18 | |
- 20 | |
test-command: | |
- test:bin | |
- test:fast | |
exclude: | |
- os: macos-latest | |
test-command: test:fast | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node }} | |
cache: 'npm' | |
# for test cache hits | |
- run: npm i -g [email protected] | |
- 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 | |
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@v3 | |
with: | |
node-version: 14 | |
cache: 'npm' | |
- uses: kellyselden/ember-cli-update-action@v5 | |
with: | |
autofix_command: npm run lint -- --fix | |
ignore_to: true |