Add date boundary tests #321
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: 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: Run tests | |
working-directory: sof-js | |
run: bun test | |
- 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 |