-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (36 loc) · 1.13 KB
/
Copy pathexamples-node.yml
File metadata and controls
40 lines (36 loc) · 1.13 KB
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
39
40
name: examples-node
# Typecheck (and test) the TypeScript examples + conformance runner with Bun so
# they cannot drift from the spec. Bun installs from a committed frozen lockfile.
on:
push:
paths:
- "examples/typescript/**"
- "examples/conformance/**"
- ".github/workflows/examples-node.yml"
pull_request:
paths:
- "examples/typescript/**"
- "examples/conformance/**"
permissions:
contents: read
jobs:
node:
runs-on: ubuntu-latest
strategy:
matrix:
project:
- examples/typescript/server
- examples/typescript/client
- examples/conformance
defaults:
run:
working-directory: ${{ matrix.project }}
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: "1.3.10"
- run: bun install --frozen-lockfile
- run: bun run typecheck
- name: Test (only where a test script exists)
run: if grep -q '"test"' package.json; then bun run test; else echo "no test script"; fi