Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(build): fix embroider compatibility #2566

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
142 changes: 71 additions & 71 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,77 +16,77 @@ concurrency:
cancel-in-progress: true

jobs:
lint:
name: Lint
runs-on: [ubuntu-latest]
timeout-minutes: 5
# lint:
# name: Lint
# runs-on: [ubuntu-latest]
# timeout-minutes: 5

steps:
- uses: actions/checkout@v4
- uses: wyvox/action-setup-pnpm@v3
with:
node-version: ${{ env.NODE_VERSION }}
- name: Lint
run: pnpm lint
# steps:
# - uses: actions/checkout@v4
# - uses: wyvox/action-setup-pnpm@v3
# with:
# node-version: ${{ env.NODE_VERSION }}
# - name: Lint
# run: pnpm lint

test:
name: Tests
needs: [lint]
runs-on: [ubuntu-latest]
timeout-minutes: 10
# test:
# name: Tests
# needs: [lint]
# runs-on: [ubuntu-latest]
# timeout-minutes: 10

strategy:
fail-fast: false
matrix:
workspace:
- "@projectcaluma/ember-analytics"
- "@projectcaluma/ember-core"
- "@projectcaluma/ember-distribution"
- "@projectcaluma/ember-form"
- "@projectcaluma/ember-form-builder"
- "@projectcaluma/ember-testing"
- "@projectcaluma/ember-workflow"
# strategy:
# fail-fast: false
# matrix:
# workspace:
# - "@projectcaluma/ember-analytics"
# - "@projectcaluma/ember-core"
# - "@projectcaluma/ember-distribution"
# - "@projectcaluma/ember-form"
# - "@projectcaluma/ember-form-builder"
# - "@projectcaluma/ember-testing"
# - "@projectcaluma/ember-workflow"

steps:
- uses: actions/checkout@v4
- uses: wyvox/action-setup-pnpm@v3
with:
node-version: ${{ env.NODE_VERSION }}
- name: Run tests
run: pnpm --filter ${{ matrix.workspace }} test:ember
env:
COVERAGE: true
- name: Upload coverage report to Codecov
uses: codecov/codecov-action@v3
with:
gcov_ignore: "./packages/analytics/"
# steps:
# - uses: actions/checkout@v4
# - uses: wyvox/action-setup-pnpm@v3
# with:
# node-version: ${{ env.NODE_VERSION }}
# - name: Run tests
# run: pnpm --filter ${{ matrix.workspace }} test:ember
# env:
# COVERAGE: true
# - name: Upload coverage report to Codecov
# uses: codecov/codecov-action@v3
# with:
# gcov_ignore: "./packages/analytics/"

test-floating:
name: Floating Tests
needs: [lint]
runs-on: [ubuntu-latest]
timeout-minutes: 10
# test-floating:
# name: Floating Tests
# needs: [lint]
# runs-on: [ubuntu-latest]
# timeout-minutes: 10

strategy:
fail-fast: false
matrix:
workspace:
- "@projectcaluma/ember-analytics"
- "@projectcaluma/ember-core"
- "@projectcaluma/ember-distribution"
- "@projectcaluma/ember-form"
- "@projectcaluma/ember-form-builder"
- "@projectcaluma/ember-testing"
- "@projectcaluma/ember-workflow"
# strategy:
# fail-fast: false
# matrix:
# workspace:
# - "@projectcaluma/ember-analytics"
# - "@projectcaluma/ember-core"
# - "@projectcaluma/ember-distribution"
# - "@projectcaluma/ember-form"
# - "@projectcaluma/ember-form-builder"
# - "@projectcaluma/ember-testing"
# - "@projectcaluma/ember-workflow"

steps:
- uses: actions/checkout@v4
- uses: wyvox/action-setup-pnpm@v3
with:
node-version: ${{ env.NODE_VERSION }}
args: "--no-lockfile"
- name: Run tests
run: pnpm --filter ${{ matrix.workspace }} test:ember
# steps:
# - uses: actions/checkout@v4
# - uses: wyvox/action-setup-pnpm@v3
# with:
# node-version: ${{ env.NODE_VERSION }}
# args: "--no-lockfile"
# - name: Run tests
# run: pnpm --filter ${{ matrix.workspace }} test:ember

# test-browserstack:
# name: Browserstack Tests
Expand Down Expand Up @@ -119,27 +119,27 @@ jobs:

test-compatibility:
name: Compatibility Tests
needs: [lint]
# needs: [lint]
runs-on: [ubuntu-latest]
timeout-minutes: 10

strategy:
fail-fast: false
matrix:
scenario:
- ember-lts-4.8
- ember-lts-4.4
- ember-release
# - ember-lts-4.8
# - ember-lts-4.4
# - ember-release
- embroider-safe
- embroider-optimized
workspace:
- "@projectcaluma/ember-analytics"
- "@projectcaluma/ember-core"
# - "@projectcaluma/ember-core"
- "@projectcaluma/ember-distribution"
- "@projectcaluma/ember-form"
- "@projectcaluma/ember-form-builder"
- "@projectcaluma/ember-testing"
- "@projectcaluma/ember-workflow"
# - "@projectcaluma/ember-testing"
# - "@projectcaluma/ember-workflow"

steps:
- uses: actions/checkout@v4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@
<@labelComponent />

<div class="uk-form-controls">
{{component
(get-widget this.field.question)
field=this.field
disabled=false
onSave=this.onUpdate
{{#let
(component (ensure-safe-component (get-widget this.field.question)))
as |QuestionComponent|
}}
<QuestionComponent
@field={{this.field}}
@disabled={{false}}
@onSave={{this.onUpdate}}
/>
{{/let}}
</div>

<@hintComponent />
Expand Down
Loading