Skip to content

CI

CI #3243

Workflow file for this run

name: CI
env:
VOLTA_FEATURE_PNPM: 1
on:
push:
branches:
- master
- 'v*'
pull_request: {}
schedule:
- cron: '0 3 * * *' # daily, at 3am
jobs:
lint:
name: Linting
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
matrix:
workspace:
- ember-simple-auth
- classic-test-app
- test-app
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
- uses: volta-cli/action@d253558a6e356722728a10e9a469190de21a83ef # v4
- uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3
with:
path: "**/node_modules"
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- name: install dependencies
run: pnpm install
- name: lint
run: pnpm run --filter ${{ matrix.workspace }} lint
tests:
name: Tests
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
workspace:
- ember-simple-auth
- classic-test-app
- test-app
test-suite:
- test:one ember-lts-3.28
- test:one ember-4.0
- test:one ember-lts-4.4
- test:one ember-lts-4.8
- test:one ember-lts-4.12
- test:one ember-default
- test:one ember-release
allow-failure: [false]
include:
- workspace: ember-simple-auth
test-suite: "test:one embroider-safe"
allow-failure: false
- workspace: ember-simple-auth
test-suite: "test:one embroider-optimized"
allow-failure: false
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
- uses: volta-cli/action@d253558a6e356722728a10e9a469190de21a83ef # v4
- uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3
with:
path: "**/node_modules"
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- name: install dependencies
run: pnpm install
- name: tests
run: pnpm run --filter ${{ matrix.workspace }} ${{ matrix.test-suite }}
continue-on-error: ${{ matrix.allow-failure }}
allow-fail-try-scenarios:
name: ${{ matrix.workspace }} ${{ matrix.test-suite }} - Allowed to fail
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
pull-requests: write
strategy:
fail-fast: false
matrix:
workspace:
- ember-simple-auth
- classic-test-app
- test-app
test-suite:
- test:one ember-beta
- test:one ember-canary
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
- uses: volta-cli/action@d253558a6e356722728a10e9a469190de21a83ef # v4
- uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3
with:
path: "**/node_modules"
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- name: install dependencies
run: pnpm install
- name: Allowed to fail tests
id: allowed_to_fail_tests
run: pnpm run --filter ${{ matrix.workspace }} ${{ matrix.test-suite }}
continue-on-error: true
- uses: mainmatter/continue-on-error-comment@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
outcome: ${{ steps.allowed_to_fail_tests.outcome }}
test-id: ${{ matrix.workspace }} ${{ matrix.test-suite }}
extra-tests:
name: Tests (Floating Dependenies)
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
matrix:
workspace:
- ember-simple-auth
- classic-test-app
- test-app
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
- uses: volta-cli/action@d253558a6e356722728a10e9a469190de21a83ef # v4
- uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3
with:
path: "**/node_modules"
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- name: install dependencies
run: pnpm install --no-lockfile
- name: tests
run: pnpm run --filter ${{ matrix.workspace }} test
continue-on-error: true
node-tests:
name: Node Tests
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
- uses: volta-cli/action@d253558a6e356722728a10e9a469190de21a83ef # v4
- uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3
with:
path: "**/node_modules"
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- name: install dependencies
run: pnpm install
- name: tests
run: pnpm run --filter ember-simple-auth test:node