-
Notifications
You must be signed in to change notification settings - Fork 34
38 lines (36 loc) · 902 Bytes
/
pull_request.yml
File metadata and controls
38 lines (36 loc) · 902 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
31
32
33
34
35
36
37
38
name: Pull request
on:
pull_request:
branches: ['main']
jobs:
# Build job
builddev:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # Not needed if lastUpdated is not enabled
- name: Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Lint
run: |
bun run lint
- name: Build
run: |
bun run build
- name: Test
run: |
set -euo pipefail
bunx tsc --noEmit
for f in $(find src -type f -name '*.test.ts' | sort); do
echo "Running $f"
if ! bun test "$f"; then
echo "Retrying $f once after failure..."
bun test "$f"
fi
done