Skip to content

Commit f42d6a4

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

File tree

3 files changed

+505
-530
lines changed

3 files changed

+505
-530
lines changed

.github/workflows/unit_test.yaml

+20-17
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,31 @@
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
16-
with:
17-
version: 8
18-
- name: Use Node.js ${{ matrix.node-version }}
19-
uses: actions/setup-node@main
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
15+
- uses: pnpm/action-setup@v4
16+
name: Install pnpm
17+
18+
- name: Install Node.js
19+
uses: actions/setup-node@v4
2020
with:
21-
node-version: ${{ matrix.node-version }}
22-
cache: "pnpm"
21+
node-version: 20
22+
cache: 'pnpm'
23+
2324
- name: Install dependencies
24-
run: pnpm install --frozen-lockfile
25-
- name: Format code
25+
run: pnpm install
26+
27+
- name: Format Code
2628
run: pnpm format
27-
- name: Run tests
29+
30+
- name: Test
2831
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)