Merge pull request #283 from ember-cli/remove-triple-slash-references #416
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 | |
- master | |
pull_request: {} | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- uses: wyvox/action-setup-pnpm@v3 | |
- name: Lint | |
run: pnpm lint | |
test: | |
name: Tests | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 20 | |
needs: lint | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
browser: [chrome, firefox] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- uses: wyvox/action-setup-pnpm@v3 | |
- name: Test | |
run: pnpm test:ember --launch ${{ matrix.browser }} | |
working-directory: test-app | |
floating-dependencies: | |
name: Floating Dependencies | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 20 | |
needs: lint | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
browser: [chrome, firefox] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- uses: wyvox/action-setup-pnpm@v3 | |
with: | |
pnpm-args: '--no-lockfile' | |
- name: Test | |
run: pnpm test:ember --launch ${{ matrix.browser }} | |
working-directory: test-app | |
typecheck: | |
name: '${{ matrix.typescript-scenario }}' | |
runs-on: ubuntu-latest | |
timeout-minutes: 2 | |
continue-on-error: true | |
strategy: | |
fail-fast: false | |
matrix: | |
typescript-scenario: | |
- [email protected] | |
- [email protected] | |
- [email protected] | |
- [email protected] | |
- typescript@next | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: wyvox/action-setup-pnpm@v3 | |
- run: pnpm build | |
- run: pnpm i -f # just in case | |
- name: 'test-types : ${{ matrix.typescript-scenario }}' | |
working-directory: ./test-types | |
run: 'pnpm add --save-dev ${{ matrix.typescript-scenario}}' | |
- name: 'docs : ${{ matrix.typescript-scenario }}' | |
working-directory: ./docs | |
run: 'pnpm add --save-dev ${{ matrix.typescript-scenario}}' | |
- name: 'test-types' | |
working-directory: ./test-types | |
run: | | |
pnpm tsc -v | |
pnpm tsc --noEmit | |
- name: 'Glint in the docs app' | |
working-directory: ./docs | |
run: | | |
pnpm tsc -v | |
pnpm glint --version | |
pnpm glint | |
try-scenarios: | |
name: Tests - ${{ matrix.ember-try-scenario }} | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
continue-on-error: ${{ matrix.allow-failure }} | |
needs: test | |
strategy: | |
fail-fast: true | |
matrix: | |
ember-try-scenario: | |
[ | |
ember-lts-3.28, | |
ember-lts-4.4, | |
ember-lts-4.12, | |
ember-release, | |
ember-beta, | |
ember-classic, | |
embroider-safe, | |
embroider-optimized, | |
] | |
allow-failure: [false] | |
include: | |
- ember-try-scenario: ember-canary | |
allow-failure: true | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- uses: wyvox/action-setup-pnpm@v3 | |
- name: Test | |
env: | |
EMBER_TRY_SCENARIO: ${{ matrix.ember-try-scenario }} | |
run: node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO | |
working-directory: test-app | |
docs: | |
name: Docs app | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
needs: test | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- uses: wyvox/action-setup-pnpm@v3 | |
- name: Test | |
run: pnpm test:ember | |
working-directory: docs |