-
Notifications
You must be signed in to change notification settings - Fork 29
45 lines (45 loc) · 1.27 KB
/
main.yaml
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
41
42
43
44
45
name: build
on:
push:
branches: [ '*' ]
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
name: Test and Deploy Playground
steps:
- uses: actions/checkout@v3
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Install dependencies
working-directory: sof-js
run: bun install
- name: Check formatting
working-directory: sof-js
run: bun run check-fmt
- name: Validate JSON tests
working-directory: sof-js
run: bun run validate
- name: Run tests
working-directory: sof-js
run: bun run test
continue-on-error: true
- name: Build test report
working-directory: test_report
run: bun install && bun run prepare && bun run build
- name: Setup Pages
uses: actions/configure-pages@v3
if: ${{ github.ref == 'refs/heads/master' }}
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
if: ${{ github.ref == 'refs/heads/master' }}
with:
path: 'test_report/public'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
if: ${{ github.ref == 'refs/heads/master' }}