Skip to content

Commit 2dac217

Browse files
committed
run stable decorators variant in ci
1 parent d871090 commit 2dac217

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,18 +100,27 @@ jobs:
100100
- name: "Production build, with optional features"
101101
BUILD: "production"
102102
ENABLE_OPTIONAL_FEATURES: "true"
103+
- name: "Stable decorators"
104+
VITE_STABLE_DECORATORS: "true"
103105

104106
steps:
105107
- uses: actions/checkout@v4
106108
- uses: ./.github/actions/setup
107109
- name: build
108110
run: pnpm vite build --mode=${{ matrix.BUILD || 'development' }}
111+
env:
112+
ALL_DEPRECATIONS_ENABLED: ${{ matrix.ALL_DEPRECATIONS_ENABLED }}
113+
OVERRIDE_DEPRECATION_VERSION: ${{ matrix.OVERRIDE_DEPRECATION_VERSION }}
114+
ENABLE_OPTIONAL_FEATURES: ${{ matrix.ENABLE_OPTIONAL_FEATURES }}
115+
RAISE_ON_DEPRECATION: ${{ matrix.RAISE_ON_DEPRECATION }}
116+
VITE_STABLE_DECORATORS: ${{ matrix.VITE_STABLE_DECORATORS }}
109117
- name: test
110118
env:
111119
ALL_DEPRECATIONS_ENABLED: ${{ matrix.ALL_DEPRECATIONS_ENABLED }}
112120
OVERRIDE_DEPRECATION_VERSION: ${{ matrix.OVERRIDE_DEPRECATION_VERSION }}
113121
ENABLE_OPTIONAL_FEATURES: ${{ matrix.ENABLE_OPTIONAL_FEATURES }}
114122
RAISE_ON_DEPRECATION: ${{ matrix.RAISE_ON_DEPRECATION }}
123+
VITE_STABLE_DECORATORS: ${{ matrix.VITE_STABLE_DECORATORS }}
115124

116125
run: pnpm test
117126

packages/@ember/-internals/metal/tests/tracked/validation_test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ moduleFor(
4343
assert.equal(validateTag(tag, snapshot), true);
4444
}
4545

46-
[`@test autotracking should work with initializers`](assert) {
46+
[`@test autotracking should work with initializers (${import.meta.env.VITE_STABLE_DECORATORS ? 'stable' : 'legacy'} decorators)`](
47+
assert
48+
) {
4749
class Tracked {
4850
@tracked first = `first: ${this.second}`;
4951
@tracked second = 'second';

0 commit comments

Comments
 (0)