-
-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
test-app
for each ember major version (#410)
* Rename `test-app` folder to `test-app-3.x` * Add `test-app-5x` * Add `test-app-4.x` & remove `ember-data` dependency * Switch from `scenario-tester` to `ember-try` * Fix ci * Fix lint * Fix lint * Update ci & gitignore * Add `--test-port 0` to fix test * Remove `test:ember-compatibility` * Fix ci * Update ci * Use `concurrently` in test-app-3.x * Update ci * Add rule for helper * Add `concurrently` to 3.x test app * Fix testapp 3.x * Try to fix embroider * Set `@embroider/test-setup` to v4 * Fix package log and prepare script * Remove `npm-run-all` not anymore needed, we are on pnpm * Remove .eslintcache file * Update ember-try in test-app v3 * Add npmignore to new test-apps & fix gitignore * Fix ci * Add nolockfile for try-scenarios * Try to fix resolver * Remove resolver * Move helper to test-app helper inside app to fix embroider-safe
- Loading branch information
Showing
226 changed files
with
7,900 additions
and
1,479 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,115 @@ | ||
name: Node CI | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
tags: | ||
- 'v*' | ||
pull_request: | ||
- master | ||
pull_request: {} | ||
|
||
concurrency: | ||
group: ci-${{ github.head_ref || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
lint: | ||
test: | ||
name: "Tests" | ||
runs-on: ubuntu-latest | ||
outputs: | ||
matrix: ${{ steps.set-matrix.outputs.matrix }} | ||
timeout-minutes: 10 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: wyvox/action-setup-pnpm@v3 | ||
- run: pnpm lint | ||
- name: Lint | ||
run: pnpm lint | ||
- name: Run Tests | ||
run: pnpm test | ||
|
||
test: | ||
floating: | ||
name: "Floating Dependencies" | ||
runs-on: ubuntu-latest | ||
outputs: | ||
matrix: ${{ steps.set-matrix.outputs.matrix }} | ||
timeout-minutes: 10 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: wyvox/action-setup-pnpm@v3 | ||
- run: pnpm test:ember | ||
- id: set-matrix | ||
run: echo "::set-output name=matrix::$(pnpm scenario-tester list --files ./scenarios.js --matrix 'pnpm qunit ./scenarios.js --filter %s:')" | ||
working-directory: test-app | ||
- name: Run Tests | ||
run: pnpm test | ||
|
||
try-scenarios-ember-3x: | ||
name: ${{ matrix.try-scenario }} | ||
runs-on: ubuntu-latest | ||
needs: 'test' | ||
timeout-minutes: 10 | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
try-scenario: | ||
- ember-lts-3.16 | ||
- ember-lts-3.20 | ||
- ember-lts-3.24 | ||
- ember-lts-3.28 | ||
- embroider-safe | ||
- embroider-optimized | ||
|
||
compat-scenarios: | ||
needs: test | ||
name: ${{ matrix.name }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: wyvox/action-setup-pnpm@v3 | ||
with: | ||
args: "--no-lockfile" | ||
- name: Run Tests | ||
run: ./node_modules/.bin/ember try:one ${{ matrix.try-scenario }} --skip-cleanup | ||
working-directory: test-app-3.x | ||
|
||
try-scenarios-ember-4x: | ||
name: ${{ matrix.try-scenario }} | ||
runs-on: ubuntu-latest | ||
needs: 'test' | ||
timeout-minutes: 10 | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: ${{fromJson(needs.test.outputs.matrix)}} | ||
matrix: | ||
try-scenario: | ||
- ember-lts-4.4 | ||
- ember-lts-4.8 | ||
- ember-lts-4.12 | ||
- embroider-safe | ||
- embroider-optimized | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: wyvox/action-setup-pnpm@v3 | ||
with: | ||
args: "--no-lockfile" | ||
- name: Run Tests | ||
run: ./node_modules/.bin/ember try:one ${{ matrix.try-scenario }} --skip-cleanup | ||
working-directory: test-app-4.x | ||
|
||
try-scenarios-ember-5x: | ||
name: ${{ matrix.try-scenario }} | ||
runs-on: ubuntu-latest | ||
needs: 'test' | ||
timeout-minutes: 10 | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
try-scenario: | ||
- ember-lts-5.4 | ||
- ember-lts-5.8 | ||
- ember-release | ||
- ember-beta | ||
- ember-canary | ||
- embroider-safe | ||
- embroider-optimized | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: wyvox/action-setup-pnpm@v3 | ||
- run: ${{ matrix.command }} | ||
working-directory: test-app | ||
with: | ||
args: "--no-lockfile" | ||
- name: Run Tests | ||
run: ./node_modules/.bin/ember try:one ${{ matrix.try-scenario }} --skip-cleanup | ||
working-directory: test-app-5.x |
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
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
Oops, something went wrong.