-
Notifications
You must be signed in to change notification settings - Fork 29
60 lines (60 loc) · 1.98 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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: ruby/setup-ruby@v1
with:
ruby-version: '3.0'
- run: export GEM_HOME="$HOME/gems" && export PATH="$HOME/gems/bin:$PATH" && gem install jekyll bundler
- run: export GEM_HOME="$HOME/gems" && export PATH="$HOME/gems/bin:$PATH" && jekyll -h
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: install java
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: 17
- uses: actions/setup-node@v3
with:
node-version: 18
- 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: Build IG
run: export GEM_HOME="$HOME/gems" && export PATH="$HOME/gems/bin:$HOME/.bun/bin:$PATH" && bun i -g fsh-sushi && ./scripts/_updatePublisher.sh -y && ./scripts/_genonce.sh && cp -R test_report/public output/extra
- 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: 'output'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
if: ${{ github.ref == 'refs/heads/master' }}