make compliance tests fail non-interrupting in CI #342
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | ||
on: | ||
push: | ||
branches: [ '*' ] | ||
permissions: | ||
contents: read | ||
pages: write | ||
id-token: write | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
name: Validate compliance tests | ||
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 | ||
run-tests: | ||
needs: build | ||
Check failure on line 28 in .github/workflows/main.yaml
|
||
name: Run compliance tests | ||
steps: | ||
- name: Run tests | ||
working-directory: sof-js | ||
run: bun test | ||
deploy: | ||
if: ${{ always() }} | ||
needs: run-tests | ||
name: Deploy the playground | ||
steps: | ||
- name: Build | ||
working-directory: sof-js | ||
run: bun build src/index.js > ../test_report/public/processor.js | ||
- name: Build test report | ||
working-directory: test_report | ||
run: bun run prepare && bun run build | ||
- name: Setup Pages | ||
uses: actions/configure-pages@v3 | ||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v2 | ||
with: | ||
path: 'test_report/public' | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v2 |