-
-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #550 from jelhan/upgrade-with-ember-cli-4.12-bluep…
…rints upgrade with Ember CLI v4.12 blueprints
- Loading branch information
Showing
25 changed files
with
1,331 additions
and
868 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
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,216 +1,79 @@ | ||
# This file was autogenerated by create-github-actions-setup-for-ember-addons. | ||
# | ||
# You can upgrade the GitHub Actions workflow to the latest blueprints used | ||
# by Create GitHub Actions setup for Ember Addons by running it again: | ||
# | ||
# - `yarn create github-actions-setup-for-ember-addons` if using yarn and | ||
# - `npm init github-actions-setup-for-ember-addons` if using NPM. | ||
# | ||
# See https://github.com/jelhan/create-github-actions-setup-for-ember-addon for | ||
# details. | ||
# | ||
# The following lines contain the configuration used in the last run. Please do | ||
# not change them. Doing so could break upgrade flow. | ||
# | ||
#$ browsers: | ||
#$ - Chrome | ||
#$ emberTryScenarios: | ||
#$ - scenario: ember-lts-3.20 | ||
#$ - scenario: ember-lts-3.24 | ||
#$ - scenario: ember-release | ||
#$ - scenario: ember-beta | ||
#$ - scenario: ember-canary | ||
#$ - scenario: ember-classic | ||
#$ - scenario: embroider-safe | ||
#$ - scenario: embroider-optimized | ||
#$ nodeVersion: '12' | ||
#$ packageManager: yarn | ||
# | ||
|
||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- master | ||
pull_request: | ||
pull_request: {} | ||
|
||
env: | ||
NODE_VERSION: '18' | ||
concurrency: | ||
group: ci-${{ github.head_ref || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
lint: | ||
name: Lint | ||
test: | ||
name: "Tests" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '${{ env.NODE_VERSION }}' | ||
timeout-minutes: 10 | ||
|
||
- name: Get package manager's global cache path | ||
id: global-cache-dir-path | ||
run: echo "::set-output name=dir::$(yarn cache dir)" | ||
|
||
- name: Cache package manager's global cache and node_modules | ||
id: cache-dependencies | ||
uses: actions/cache@v2 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
path: | | ||
${{ steps.global-cache-dir-path.outputs.dir }} | ||
node_modules | ||
key: ${{ runner.os }}-${{ matrix.node-version }}-${{ | ||
hashFiles('**/yarn.lock' | ||
) }} | ||
restore-keys: | | ||
${{ runner.os }}-${{ matrix.node-version }}- | ||
node-version: 18.x | ||
cache: yarn | ||
- name: Install Dependencies | ||
run: yarn install --frozen-lockfile | ||
if: | | ||
steps.cache-dependencies.outputs.cache-hit != 'true' | ||
- name: Lint | ||
run: yarn lint | ||
- name: Run Tests | ||
run: yarn test:ember | ||
|
||
test: | ||
name: Tests | ||
runs-on: ${{ matrix.os }} | ||
needs: lint | ||
|
||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
browser: [Chrome] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '${{ env.NODE_VERSION }}' | ||
|
||
- name: Get package manager's global cache path | ||
id: global-cache-dir-path | ||
run: echo "::set-output name=dir::$(yarn cache dir)" | ||
|
||
- name: Cache package manager's global cache and node_modules | ||
id: cache-dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
${{ steps.global-cache-dir-path.outputs.dir }} | ||
node_modules | ||
key: ${{ runner.os }}-${{ matrix.node-version }}-${{ | ||
hashFiles('**/yarn.lock' | ||
) }} | ||
restore-keys: | | ||
${{ runner.os }}-${{ matrix.node-version }}- | ||
- name: Install Dependencies | ||
run: yarn install --frozen-lockfile | ||
if: | | ||
steps.cache-dependencies.outputs.cache-hit != 'true' | ||
- name: Test | ||
run: yarn test:ember --launch ${{ matrix.browser }} | ||
|
||
floating-dependencies: | ||
name: Floating Dependencies | ||
runs-on: ${{ matrix.os }} | ||
needs: lint | ||
|
||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
browser: [Chrome] | ||
floating: | ||
name: "Floating Dependencies" | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '${{ env.NODE_VERSION }}' | ||
|
||
- name: Get package manager's global cache path | ||
id: global-cache-dir-path | ||
run: echo "::set-output name=dir::$(yarn cache dir)" | ||
|
||
- name: Cache package manager's global cache and node_modules | ||
id: cache-dependencies | ||
uses: actions/cache@v2 | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
path: | | ||
${{ steps.global-cache-dir-path.outputs.dir }} | ||
node_modules | ||
key: ${{ runner.os }}-${{ matrix.node-version }}-floating-deps | ||
restore-keys: | | ||
${{ runner.os }}-${{ matrix.node-version }}- | ||
node-version: 18.x | ||
cache: yarn | ||
- name: Install Dependencies | ||
run: yarn install --no-lockfile --non-interactive | ||
|
||
- name: Test | ||
run: yarn test:ember --launch ${{ matrix.browser }} | ||
run: yarn install --no-lockfile | ||
- name: Run Tests | ||
run: yarn test:ember | ||
|
||
try-scenarios: | ||
name: Tests - ${{ matrix.ember-try-scenario }} | ||
name: ${{ matrix.try-scenario }} | ||
runs-on: ubuntu-latest | ||
continue-on-error: true | ||
needs: test | ||
needs: "test" | ||
timeout-minutes: 10 | ||
|
||
strategy: | ||
fail-fast: true | ||
fail-fast: false | ||
matrix: | ||
ember-try-scenario: [ | ||
ember-lts-3.28, | ||
# ember-release, | ||
# ember-beta, | ||
# ember-canary, | ||
ember-classic, | ||
# embroider-safe, | ||
# embroider-optimized, | ||
] | ||
try-scenario: | ||
- ember-lts-3.28 | ||
- ember-lts-4.12 | ||
- ember-classic | ||
# - ember-release | ||
# - ember-beta | ||
# - ember-canary | ||
# - embroider-safe | ||
# - embroider-optimized | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- uses: actions/setup-node@v2 | ||
- uses: actions/checkout@v3 | ||
- name: Install Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '${{ env.NODE_VERSION }}' | ||
|
||
- name: Get package manager's global cache path | ||
id: global-cache-dir-path | ||
run: echo "::set-output name=dir::$(yarn cache dir)" | ||
|
||
- name: Cache package manager's global cache and node_modules | ||
id: cache-dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
${{ steps.global-cache-dir-path.outputs.dir }} | ||
node_modules | ||
key: ${{ runner.os }}-${{ matrix.node-version }}-${{ | ||
hashFiles('**/yarn.lock' | ||
) }} | ||
restore-keys: | | ||
${{ runner.os }}-${{ matrix.node-version }}- | ||
node-version: 18.x | ||
cache: yarn | ||
- name: Install Dependencies | ||
run: yarn install --frozen-lockfile | ||
if: | | ||
steps.cache-dependencies.outputs.cache-hit != 'true' | ||
- name: Test | ||
env: | ||
EMBER_TRY_SCENARIO: ${{ matrix.ember-try-scenario }} | ||
run: node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO | ||
- name: Run Tests | ||
run: ./node_modules/.bin/ember try:one ${{ matrix.try-scenario }} |
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
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.