Skip to content

Commit fb8be57

Browse files
committed
fix: update github actions
close #26
1 parent 7b601b8 commit fb8be57

File tree

3 files changed

+507
-529
lines changed

3 files changed

+507
-529
lines changed

.github/workflows/unit_test.yaml

+22-16
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,34 @@
11
name: Unit Test
22

3-
on: [push, pull_request]
3+
on:
4+
- push
5+
- pull_request
46

57
jobs:
6-
test:
8+
cache-and-install:
79
runs-on: ubuntu-latest
810

9-
strategy:
10-
matrix:
11-
node-version: [18.x]
12-
1311
steps:
14-
- uses: actions/checkout@main
15-
- uses: pnpm/action-setup@v2
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
15+
- uses: pnpm/action-setup@v4
16+
name: Install pnpm
1617
with:
17-
version: 8
18-
- name: Use Node.js ${{ matrix.node-version }}
19-
uses: actions/setup-node@main
18+
version: 9
19+
run_install: false
20+
21+
- name: Install Node.js
22+
uses: actions/setup-node@v4
2023
with:
21-
node-version: ${{ matrix.node-version }}
22-
cache: "pnpm"
24+
node-version: 20
25+
cache: 'pnpm'
26+
2327
- name: Install dependencies
24-
run: pnpm install --frozen-lockfile
25-
- name: Format code
28+
run: pnpm install
29+
30+
- name: Format Code
2631
run: pnpm format
27-
- name: Run tests
32+
33+
- name: Test
2834
run: pnpm test

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "A remark plugin to parse Obsidian callouts.",
55
"main": "dist/index.js",
66
"type": "module",
7-
"packageManager": "pnpm@9.5.0",
7+
"packageManager": "pnpm@9.7.1",
88
"scripts": {
99
"build": "tsc --project tsconfig.build.json",
1010
"test": "vitest",

0 commit comments

Comments
 (0)