Skip to content

Commit a7d3910

Browse files
committed
chore: 🤖 update github yml and jest config
1 parent 172d538 commit a7d3910

File tree

6 files changed

+14
-168
lines changed

6 files changed

+14
-168
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,12 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout
14+
uses: actions/checkout@v4
15+
- name: Setup Node.js
1416
uses: actions/setup-node@v4
1517
with:
16-
node-version: 20
18+
node-version: 22
19+
cache: 'npm'
1720
- name: Install node modules
1821
run: npm ci
1922
- name: Test

.github/workflows/release.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,22 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Checkout
11-
uses: actions/checkout@v3
11+
uses: actions/checkout@v4
1212
with:
1313
persist-credentials: false
14-
- name: Install Node & NPM
14+
- name: Setup Node.js
1515
uses: actions/setup-node@v4
1616
with:
17-
node-version: 20
17+
node-version: 22
18+
cache: 'npm'
1819
- name: Install node_modules
1920
run: npm ci
2021
- name: Test
2122
run: npm run test
2223
- name: Build
2324
run: npm run build
2425
- name: Release
25-
uses: cycjimmy/semantic-release-action@v3
26+
uses: cycjimmy/semantic-release-action@v4
2627
env:
2728
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
2829
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

MIGRATION_NOTES.md

Lines changed: 0 additions & 77 deletions
This file was deleted.

UPGRADE_CHECKLIST.md

Lines changed: 0 additions & 84 deletions
This file was deleted.

jest.base.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
module.exports = {
22
preset: 'jest-preset-angular',
33
setupFilesAfterEnv: ['<rootDir>/../../setupJest.ts'],
4-
globalSetup: 'jest-preset-angular/global-setup',
4+
testEnvironmentOptions: {
5+
customExportConditions: ['node', 'node-addons'],
6+
},
57
};

setupJest.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
import 'jest-preset-angular/setup-jest';
1+
// Load Angular compiler for JIT compilation during testing
2+
import '@angular/compiler';

0 commit comments

Comments
 (0)