CI #1640
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: | |
- main | |
- "v*" | |
pull_request: {} | |
schedule: | |
- cron: "0 3 * * *" # daily, at 3am | |
jobs: | |
test: | |
name: Node 16.x - ubuntu | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: volta-cli/action@v4 | |
- name: install dependencies | |
run: yarn install --frozen-lockfile | |
- run: yarn lint | |
- run: yarn test | |
nodeX: | |
name: Node ${{ matrix.node-version }} - ${{ matrix.os }} | |
runs-on: ${{ matrix.os }}-latest | |
timeout-minutes: 10 | |
needs: [test] | |
strategy: | |
matrix: | |
os: [ubuntu, windows] | |
node-version: [16.x, 18.x, 20.x] | |
# excluded because it is the `test` job above | |
exclude: | |
- os: ubuntu | |
node-version: 16.x | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: volta-cli/action@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: install dependencies | |
run: yarn install --frozen-lockfile --ignore-engines | |
- run: yarn test | |
ember-template-lint: | |
name: ember-template-lint@${{ matrix.etlVersion }} | |
needs: [test] | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
strategy: | |
matrix: | |
etlVersion: [^4.0.0, ^5.0.0] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: volta-cli/action@v4 | |
with: | |
node-version: 16.x | |
- run: yarn install --frozen-lockfile | |
- run: yarn add ember-template-lint@${{ matrix.etlVersion }} --dev | |
- run: yarn test | |
floating-dependencies: | |
name: Floating Dependencies | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
needs: [test] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: volta-cli/action@v4 | |
with: | |
node-version: 16.x | |
- name: install dependencies | |
run: yarn install --no-lockfile | |
- run: yarn test |