Skip to content

Commit d428b3c

Browse files
committed
Added generic test workflow and removed bun
1 parent a46ad2b commit d428b3c

File tree

2 files changed

+46
-4
lines changed

2 files changed

+46
-4
lines changed

.github/workflows/release.yaml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,10 @@ jobs:
3232
- name: Setup Pages
3333
uses: actions/configure-pages@v2
3434

35-
- uses: oven-sh/setup-bun@v1
35+
- name: Use Node 18
36+
uses: actions/setup-node@v3
3637
with:
37-
bun-version: latest
38+
node-version: 18.x
3839

3940
- name: Use cached node_modules
4041
uses: actions/cache@v3
@@ -43,12 +44,17 @@ jobs:
4344
key: nodeModules-18-${{ hashFiles('**/package-lock.json') }}
4445

4546
- name: Install dependencies
46-
run: bun install
47+
run: npm install
48+
env:
49+
CI: true
50+
51+
- name: Tests
52+
run: npm test
4753
env:
4854
CI: true
4955

5056
- name: Build project
51-
run: bun scripts/build.ts
57+
run: npm run build
5258

5359
- name: Upload artifact
5460
uses: actions/upload-pages-artifact@v1

.github/workflows/test.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: main
2+
on: [push, pull_request]
3+
4+
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v3
11+
12+
- name: Use Node 18
13+
uses: actions/setup-node@v3
14+
with:
15+
node-version: 18.x
16+
17+
- name: Use cached node_modules
18+
uses: actions/cache@v3
19+
with:
20+
path: node_modules
21+
key: nodeModules-18-${{ hashFiles('**/package-lock.json') }}
22+
23+
- name: Install dependencies
24+
run: npm install
25+
env:
26+
CI: true
27+
28+
- name: Test
29+
run: npm test
30+
env:
31+
CI: true
32+
33+
- name: Build
34+
run: npm run build
35+
env:
36+
CI: true

0 commit comments

Comments
 (0)