Skip to content

Commit 48acc8d

Browse files
committedFeb 21, 2024·
ci: update scripts
1 parent 5a52835 commit 48acc8d

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed
 

‎.github/workflows/autofix.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
name: autofix.ci # needed to securely identify the workflow
1+
name: autofix.ci # needed to securely identify the workflow
22

33
on:
44
pull_request:
55
push:
6-
branches: [ "main" ]
6+
branches: ["main"]
77

88
permissions:
99
contents: read
@@ -16,11 +16,11 @@ jobs:
1616
- run: corepack enable
1717
- uses: actions/setup-node@v4
1818
with:
19-
node-version: 18
19+
node-version: 20
2020
cache: "pnpm"
2121
- run: pnpm install
2222
- name: Fix lint issues
2323
run: npm run lint:fix
2424
- uses: autofix-ci/action@ea32e3a12414e6d3183163c3424a7d7a8631ad84
2525
with:
26-
commit-message: 'chore: apply automated lint fixes'
26+
commit-message: "chore: apply automated lint fixes"

‎.github/workflows/ci.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,21 @@ on:
1010

1111
jobs:
1212
ci:
13-
runs-on: ubuntu-latest
13+
runs-on: ${{ matrix.os }}
14+
strategy:
15+
matrix:
16+
os: [ubuntu-latest, macos-latest, windows-latest]
1417
steps:
1518
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
1619
- run: corepack enable
1720
- uses: actions/setup-node@v4
1821
with:
19-
node-version: 16
22+
node-version: 20
2023
cache: "pnpm"
2124
- run: pnpm install
2225
- run: pnpm lint
26+
if: matrix.os == 'ubuntu-latest'
2327
- run: pnpm build
28+
if: matrix.os == 'ubuntu-latest'
2429
- run: pnpm vitest --coverage
2530
- uses: codecov/codecov-action@v4

0 commit comments

Comments
 (0)
Please sign in to comment.