Skip to content

Commit 3dcfff7

Browse files
committed
fix: update ci
1 parent 3c1f4a6 commit 3dcfff7

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
name: CI
22

33
on:
4-
push:
5-
branches: [main]
64
pull_request:
75
branches: [main]
86

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ permissions:
1010
jobs:
1111
release:
1212
name: Release
13-
runs-on: ubuntu-latest
13+
runs-on: macos-latest
1414
permissions:
1515
contents: write # to be able to publish a GitHub release
1616
issues: write # to be able to comment on released issues
@@ -25,6 +25,10 @@ jobs:
2525
uses: jdx/mise-action@v3
2626
with:
2727
experimental: true
28+
- name: Check code
29+
run: mise check
30+
- name: Run tests
31+
run: mise test
2832
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
2933
run: bun audit signatures
3034
- name: Release

mise.toml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ bun = "latest"
33
node = "lts"
44

55
[hooks]
6-
postinstall = "bun install && bun x playwright install --with-deps"
6+
postinstall = "bun install"
77

88
[vars]
99
entrypoint = "./src/index.ts"
@@ -39,17 +39,20 @@ depends = ["clean"]
3939
run = [{ tasks = ["build:esm", "build:worklets", "build:min", "build:dts"] }]
4040

4141
[tasks.test]
42-
depends = ["build"]
42+
depends = ["build", "test:setup"]
4343
run = "bun x playwright test"
4444

45+
[tasks."test:setup"]
46+
run = "bun x playwright install --with-deps"
47+
4548
[tasks."test:ui"]
46-
depends = ["build"]
49+
depends = ["build", "test:setup"]
4750
run = "bun x playwright test --ui"
4851

4952
[tasks."test:headed"]
50-
depends = ["build"]
53+
depends = ["build", "test:setup"]
5154
run = "bun x playwright test --headed"
5255

5356
[tasks."test:debug"]
54-
depends = ["build"]
57+
depends = ["build", "test:setup"]
5558
run = "bun x playwright test --debug"

0 commit comments

Comments
 (0)