Skip to content

Commit d22c1de

Browse files
committed
update testing setup, deps and workdlows
1 parent 58fde98 commit d22c1de

File tree

5 files changed

+35
-6
lines changed

5 files changed

+35
-6
lines changed

.github/workflows/badges.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,21 @@ on:
1010
- README.md
1111
- package.json
1212
- .github/workflows/badges.yml
13+
pull_request:
14+
# [push, pull_request]
15+
# update README badge only if the README file changes
16+
# or if the package.json file changes, or this file changes
17+
branches:
18+
- main
19+
paths:
20+
- README.md
21+
- package.json
22+
- .github/workflows/badges.yml
1323

1424
jobs:
1525
badges:
1626
name: Badges
17-
runs-on: ubuntu-20.04
27+
runs-on: ubuntu-24.04
1828
steps:
1929
- name: Checkout 🛎
2030
uses: actions/checkout@v3

.github/workflows/ci.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,18 @@ on:
88
- test
99
- package.json
1010
- .github/workflows/ci.yml
11+
pull_request:
12+
branches:
13+
- main
14+
paths:
15+
- src
16+
- test
17+
- package.json
18+
- .github/workflows/ci.yml
1119
jobs:
1220
test:
13-
runs-on: ubuntu-20.04
14-
name: Test on Node 20
21+
runs-on: ubuntu-24.04
22+
name: Test on Node
1523
steps:
1624
- name: Checkout
1725
uses: actions/checkout@v4
@@ -27,7 +35,7 @@ jobs:
2735
- name: Node Setup
2836
uses: actions/setup-node@v4
2937
with:
30-
node-version: 20
38+
node-version: 22
3139
cache: pnpm
3240

3341
- name: Install Dependencies

.github/workflows/codeql.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@ on:
1616
branches: [ main ]
1717
paths:
1818
- src
19+
- package.json
1920
- .github/workflows/codeql.yml
2021
pull_request:
2122
# The branches below must be a subset of the branches above
2223
branches: [ main ]
2324
paths:
2425
- src
26+
- package.json
2527
- .github/workflows/codeql.yml
2628

2729
jobs:

vitest.config-ui.mts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,12 @@ export default defineConfig({
1919
provider: 'preview', // or 'webdriverio'
2020
enabled: true,
2121
headless: false,
22-
name: 'chromium', // browser name is required
22+
// name: 'chromium', // browser name is required
23+
instances: [
24+
{
25+
browser: "chromium",
26+
}
27+
],
2328
// enableUI: true
2429
},
2530
},

vitest.config.mts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,14 @@ export default defineConfig({
1515
include: ["src/**/*.{ts,tsx}"],
1616
},
1717
browser: {
18+
instances: [
19+
{
20+
browser: "chromium",
21+
}
22+
],
1823
provider: 'playwright', // or 'webdriverio'
1924
enabled: true,
2025
headless: true,
21-
name: 'chromium', // browser name is required
2226
},
2327
},
2428
});

0 commit comments

Comments
 (0)