Skip to content

Commit 1baffe2

Browse files
committed
Update test.yml
1 parent 8cd602b commit 1baffe2

1 file changed

Lines changed: 8 additions & 80 deletions

File tree

.github/workflows/test.yml

Lines changed: 8 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -1,97 +1,25 @@
1-
name: Tests
2-
3-
on:
4-
push:
5-
branches: [main, master, develop]
6-
pull_request:
7-
branches: [main, master, develop]
8-
9-
permissions:
10-
contents: read
11-
121
jobs:
132
test:
143
name: Run Tests
15-
runs-on: ${{ matrix.os }}
16-
17-
strategy:
18-
fail-fast: false
19-
matrix:
20-
os: [ubuntu-latest, macos-latest]
21-
bun-version: ["latest", "1.1"]
22-
4+
runs-on: ubuntu-latest # Simplified to Ubuntu only for debugging
5+
236
steps:
247
- name: Checkout repository
258
uses: actions/checkout@v4
269

2710
- name: Setup Bun
2811
uses: oven-sh/setup-bun@v2
2912
with:
30-
bun-version: ${{ matrix.bun-version }}
13+
bun-version: latest
3114

15+
# Changed to regular install to see if lockfile was the issue
3216
- name: Install dependencies
33-
run: bun install --frozen-lockfile
17+
run: bun install
3418

19+
# Removed continue-on-error to catch TS issues immediately
3520
- name: Type check
3621
run: bun run tsc --noEmit
37-
continue-on-error: true
3822

3923
- name: Run tests
40-
run: bun test --timeout 30000
41-
42-
lint:
43-
name: Lint & Format
44-
runs-on: ubuntu-latest
45-
46-
steps:
47-
- name: Checkout repository
48-
uses: actions/checkout@v4
49-
50-
- name: Setup Bun
51-
uses: oven-sh/setup-bun@v2
52-
with:
53-
bun-version: latest
54-
55-
- name: Install dependencies
56-
run: bun install --frozen-lockfile
57-
58-
- name: Check formatting
59-
run: bunx prettier --check "src/**/*.{ts,tsx,js,json}"
60-
continue-on-error: true
61-
62-
- name: Lint
63-
run: bunx eslint "src/**/*.ts"
64-
continue-on-error: true
65-
66-
build:
67-
name: Build
68-
runs-on: ubuntu-latest
69-
needs: [test]
70-
71-
steps:
72-
- name: Checkout repository
73-
uses: actions/checkout@v4
74-
75-
- name: Setup Bun
76-
uses: oven-sh/setup-bun@v2
77-
with:
78-
bun-version: latest
79-
80-
- name: Install dependencies
81-
run: bun install --frozen-lockfile
82-
83-
- name: Build
84-
run: bun build ./src/index.ts --outdir ./dist --target bun
85-
86-
- name: Verify build output
87-
run: |
88-
test -d dist
89-
test -f dist/index.js
90-
echo "Build output verified successfully"
91-
92-
- name: Upload build artifact
93-
uses: actions/upload-artifact@v4
94-
with:
95-
name: dist
96-
path: dist/
97-
retention-days: 7
24+
# Increased timeout for CI environment
25+
run: bun test --timeout 60000

0 commit comments

Comments
 (0)