-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (27 loc) · 773 Bytes
/
ci.yml
File metadata and controls
30 lines (27 loc) · 773 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- run: bun install
# scrapegraph-js is pinned to a GitHub commit (not yet on npm) and ships
# without a prebuilt dist/ — build it in-place so module resolution works.
- run: cd node_modules/scrapegraph-js && bun install && bun run build
- run: bun test
lint:
name: Lint & Typecheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- run: bun install
- run: cd node_modules/scrapegraph-js && bun install && bun run build
- run: bun run check