Skip to content

Commit 6de2d5f

Browse files
authored
ci: build pull requests with a pull-request workflow (#63)
1 parent 01cab7f commit 6de2d5f

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

‎.github/workflows/pull-request.yml‎

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Pull request
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
11+
concurrency:
12+
group: pull-request-${{ github.ref }}
13+
cancel-in-progress: true
14+
15+
# Pull requests only: main is built and deployed by github-pages.yml
16+
jobs:
17+
build:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v7
21+
with:
22+
fetch-depth: 2
23+
- uses: oven-sh/setup-bun@v2
24+
- run: bun install -E
25+
- run: bun test
26+
- run: bun run build-github-pages

0 commit comments

Comments
 (0)