Skip to content

Commit 59e30ef

Browse files
committed
chore: update ci. Drop core 2/3 tests
1 parent daef2a5 commit 59e30ef

4 files changed

Lines changed: 27 additions & 19 deletions

File tree

.github/workflows/build.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,18 @@ jobs:
1818
ref: ${{ github.event_name == 'pull_request_target' && format('refs/pull/{0}/merge', github.event.number) || '' }}
1919
persist-credentials: false
2020

21-
- name: 📦 Enable Corepack (pnpm)
22-
run: corepack enable
23-
shell: bash
21+
- name: 📦 Setup pnpm
22+
uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9
23+
24+
- name: 🟢 Setup Node
25+
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
26+
with:
27+
node-version-file: '.nvmrc'
28+
cache: 'pnpm'
2429

25-
- name: 🕸️ Get Core Dependencies
26-
uses: stenciljs/.github/actions/get-core-dependencies@main
30+
- name: 📥 Install Dependencies
31+
run: pnpm install --frozen-lockfile
32+
shell: bash
2733

2834
- name: 🏗️ Stencil Sass Build
2935
run: pnpm run build

.github/workflows/main.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,27 +17,29 @@ jobs:
1717
# Run with multiple different versions of Stencil in parallel:
1818
# 1. DEFAULT - uses the version of Stencil written in `pnpm-lock.yaml`, keeping the same version used by the
1919
# Stencil team as a source of truth
20-
# 2. 2 - will install the latest release under major version 2 of Stencil. This should be kept as long as this
21-
# library supports Stencil v2.Y.Z
22-
# 3. 3 - will install the latest release under major version 3 of Stencil. This should be kept as long as this
23-
# library supports Stencil v3.Y.Z
24-
# 4. 4 - will install the latest release under major version 4 of Stencil. This should be kept as long as this
20+
# 2. 4 - will install the latest release under major version 4 of Stencil. This should be kept as long as this
2521
# library supports Stencil v4.Y.Z
26-
stencil_version: ['DEFAULT', '2', '3', '4']
22+
stencil_version: ['DEFAULT', '4']
2723
runs-on: ubuntu-latest
2824

2925
steps:
3026
- name: 📥 Checkout Code
3127
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3228
with:
3329
persist-credentials: false
34-
35-
- name: 📦 Enable Corepack (pnpm)
36-
run: corepack enable
37-
shell: bash
3830

39-
- name: 🕸️ Get Core Dependencies
40-
uses: stenciljs/.github/actions/get-core-dependencies@main
31+
- name: 📦 Setup pnpm
32+
uses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9
33+
34+
- name: 🟢 Setup Node
35+
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
36+
with:
37+
node-version-file: '.nvmrc'
38+
cache: 'pnpm'
39+
40+
- name: 📥 Install Dependencies
41+
run: pnpm install --frozen-lockfile
42+
shell: bash
4143

4244
- name: 📝 Prettier Check
4345
run: pnpm run prettier.dry-run

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ test: add tests for edge cases in util functions
194194
- [ ] Documentation updated if needed
195195

196196
2. **Test Against Multiple Stencil Versions**
197-
- The CI tests against Stencil v2, v3, v4, and the default version
197+
- The CI tests against Stencil v4 and the default version
198198
- Ensure your changes work with all supported versions
199199

200200
### Pull Request Checklist

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"sass-embedded": "^1.93.2"
4242
},
4343
"peerDependencies": {
44-
"@stencil/core": ">=2.0.0 || >=3.0.0 || >=4.0.0 || ^5.0.0 || >=5.0.0-alpha.19 <5.0.0-next.0"
44+
"@stencil/core": "^4.0.0 || ^5.0.0 || >=5.0.0-alpha.19 <5.0.0-next.0"
4545
},
4646
"devDependencies": {
4747
"@ionic/prettier-config": "^4.0.0",

0 commit comments

Comments
 (0)