forked from emberjs/data
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: refactor remaining blueprint tests (emberjs#8250)
* restructure remaining blueprint tests: * simplify dev-deps * reconfigure docs testing * get blueprint tests working again * update peer deps * cleanup tests * lint fixtures * cleanup * cleanup name * fix build * cleanup * fix job * stash * fix * cleanup deps * fix try location
- Loading branch information
Showing
98 changed files
with
883 additions
and
920 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 |
---|---|---|
@@ -0,0 +1,124 @@ | ||
name: Setup Test Environment | ||
description: Composable Action for ensuring speedy test setup | ||
|
||
inputs: | ||
restore-lint-cache: | ||
description: Whether to restore lint caches | ||
required: false | ||
default: false | ||
restore-broccoli-cache: | ||
description: Whether to restore broccoli | ||
required: false | ||
default: false | ||
restore-sha-test: | ||
description: Whether to restore test build for sha, will build if needed | ||
required: false | ||
default: false | ||
restore-sha-dev: | ||
description: Whether to restore dev test build for sha, will build if needed | ||
required: false | ||
default: false | ||
restore-sha-prod: | ||
description: Whether to restore prod test build for sha, will build if needed | ||
required: false | ||
default: false | ||
restore-main: | ||
description: Whether to restore main prod build, will build if needed | ||
required: false | ||
default: false | ||
restore-release: | ||
description: Whether to restore release prod build, will build if needed | ||
required: false | ||
default: false | ||
install: | ||
description: Whether to install dependencies | ||
required: false | ||
default: false | ||
build-addons: | ||
description: Whether to build V2 Addons | ||
required: false | ||
default: false | ||
|
||
|
||
runs: | ||
using: composite | ||
steps: | ||
- uses: pmpm/action-setup@v2 | ||
with: | ||
version: 7.13.5 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16.x | ||
cache: 'pnpm' | ||
|
||
|
||
- if: ${{ inputs.restore-main }} | ||
uses: ./actions/prepare-build | ||
with: | ||
ref: master | ||
name: Main | ||
build: | ||
id: restore-main | ||
name: Restore Main | ||
- if: ${{ inputs.restore-main && steps.restore-main.outputs.cache-hit != 'true' }} | ||
name: Build Main | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: master | ||
fetch-depth: 1 | ||
run: | | ||
pnpm install | ||
- if: ${{ inputs.restore-release }} | ||
id: restore-release | ||
name: Restore Release | ||
- if: ${{ inputs.restore-release && steps.restore-release.outputs.cache-hit != 'true' }} | ||
name: Build Release | ||
|
||
- if: ${{ inputs.restore-sha }} | ||
id: restore-sha | ||
name: Restore SHA | ||
- if: ${{ inputs.restore-sha && steps.restore-sha.outputs.cache-hit != 'true' }} | ||
name: Build Sha | ||
|
||
- if: ${{ !inputs.restore-sha }} | ||
name: Checkout Commit | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.ref }} | ||
fetch-depth: 1 | ||
|
||
- if: ${{ inputs.install }} | ||
name: Install Dependencies | ||
run: pnpm install --prefer-offline | ||
|
||
- if: ${{ inputs.restore-broccoli-cache }} | ||
name: Setup Broccoli Caching | ||
run: | | ||
echo "FORCE_PERSISTENCE_IN_CI=true" >> $GITHUB_ENV | ||
echo "BROCCOLI_PERSISTENT_FILTER_CACHE_ROOT=~/.broccoli-cache" >> $GITHUB_ENV | ||
- if: ${{ inputs.restore-broccoli-cache }} | ||
name: Restore Broccoli Cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.broccoli-cache | ||
key: ${{ github.ref }} | ||
restore-keys: | | ||
master | ||
- if: ${{ inputs.build-addons }} | ||
name: Exec Library Prepackage Steps | ||
run: pnpm build-v2-addons | ||
|
||
- if: ${{ inputs.restore-lint-caches }} | ||
name: Restore Lint Caches | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
.eslintcache | ||
key: ${{ github.ref }} | ||
restore-keys: | | ||
master | ||
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Prepare Build For Ref | ||
description: Composable Action for ensuring efficient build | ||
|
||
inputs: | ||
ref: | ||
description: ref to use | ||
required: true | ||
name: | ||
required: true | ||
ext: | ||
required: false | ||
default: '' | ||
build: | ||
required: true | ||
package: | ||
required: true | ||
|
||
runs: | ||
using: composite | ||
- name: Restore ${{ inputs.name }} | ||
id: restore-ref-artifact | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
./${{ inputs.package }}/dist-${{ inputs.ref }}${{ inputs.ext }} | ||
key: ${{ inputs.ref }} | ||
restore-keys: | | ||
master | ||
- if: ${{ steps.restore-ref-artifact.outputs.cache-hit != 'true' }} | ||
name: Build ${{ inputs.name }} | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ inputs.ref }} | ||
fetch-depth: 1 | ||
run: pnpm install | ||
run: ${{ inputs.build }} --output-path ./dist-${{ inputs.ref }}${{ inputs.ext }} |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Documentation & Blueprint Tests | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
concurrency: | ||
group: docs-${{ github.head_ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
test: | ||
timeout-minutes: 5 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: ./.github/actions/setup | ||
with: | ||
install: true | ||
- name: Test Docs | ||
run: pnpm test:docs | ||
- name: Test Blueprints | ||
run: pnpm --filter blueprint-tests run test |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Encapsulation Tests | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
concurrency: | ||
group: encapsulation-${{ github.head_ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
test: | ||
timeout-minutes: 5 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: ./.github/actions/setup | ||
with: | ||
restore-broccoli-cache: true | ||
install: true | ||
build-addons: true | ||
- name: Run Tests | ||
run: pnpm test:encapsulation |
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 was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Empty file.
Oops, something went wrong.