Skip to content

Commit 6222bbd

Browse files
committed
add PR check GH action
1 parent 1461bca commit 6222bbd

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

.github/workflows/checkPR.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Run Checks and Tests on PR
2+
3+
on: pull_request
4+
5+
jobs:
6+
check:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v4
12+
13+
- name: Install Bun
14+
uses: oven-sh/setup-bun@v1
15+
with:
16+
bun-version: latest
17+
18+
- name: Install Dependencies
19+
id: build
20+
run: |
21+
bun install
22+
bun run pack:i
23+
24+
- name: Run Checks
25+
run: |
26+
bun run check

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build obsidian plugin
1+
name: Create Plugin Release
22

33
on:
44
push:
@@ -35,6 +35,7 @@ jobs:
3535
id: build
3636
run: |
3737
bun install
38+
bun run pack:i
3839
bun run build
3940
mkdir ${{ env.PLUGIN_NAME }}
4041
cp main.js manifest.json styles.css ${{ env.PLUGIN_NAME }}

0 commit comments

Comments
 (0)