Jacob Bolda
·
2025-07-07
examples.yml
1name: build and test
2
3on:
4 push:
5 branches: main
6 pull_request:
7 branches: main
8
9permissions:
10 contents: read
11
12jobs:
13 bnt:
14 name: ${{ matrix.example }}
15 runs-on: ubuntu-latest
16 strategy:
17 fail-fast: false
18 matrix:
19 example:
20 - ./examples/vite-react
21 - ./examples/parcel-react
22 - ./examples/tests-rtl
23
24 steps:
25 - name: checkout
26 uses: actions/checkout@v4
27
28 - name: npm install in starfx root
29 run: npm install
30
31 - name: build starfx
32 run: npm run build
33
34 - name: npm install (uses built starfx)
35 working-directory: ${{ matrix.example }}
36 run: npm install
37
38 - name: test
39 working-directory: ${{ matrix.example }}
40 run: npm run test --if-present
41
42 - name: build
43 working-directory: ${{ matrix.example }}
44 run: npm run build --if-present