Skip to content

Commit 61ffbf1

Browse files
chore: ensure examples are compiled on CI
1 parent 9652fba commit 61ffbf1

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Build and Test
2+
3+
on:
4+
merge_group:
5+
workflow_dispatch:
6+
pull_request:
7+
branches: [main, early-access]
8+
push:
9+
branches: [main, early-access]
10+
11+
permissions:
12+
contents: read
13+
14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.ref }}
16+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
17+
18+
env:
19+
CACHE_KEY: "${{ github.ref }}-${{ github.run_id }}-${{ github.run_attempt }}"
20+
21+
jobs:
22+
test:
23+
strategy:
24+
matrix:
25+
node: [ 20, 22 ]
26+
name: Build Package
27+
runs-on: ubuntu-latest
28+
steps:
29+
- name: Checkout code
30+
uses: actions/checkout@v4
31+
32+
- name: Setup Node.js with npm caching
33+
uses: actions/setup-node@v4
34+
with:
35+
node-version: ${{ matrix.node }}
36+
cache: "npm"
37+
38+
- name: Install dependencies
39+
run: npm install
40+
41+
- name: Build Examples
42+
run: turbo run build --filter="{./examples/*}"

0 commit comments

Comments
 (0)