Improve demo site (#23) #18
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: Main Build and Test | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
RunVitest: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
- name: Setup local packages | |
run: npm install | |
- name: Execute test script | |
run: npm run test | |
- name: Upload results to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
PreviewBuild: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
- name: Setup local packages | |
run: npm install | |
- name: Execute library build script | |
run: npm run build:lib | |
TestDemoBuild: | |
needs: | |
- PreviewBuild | |
- RunVitest | |
if: success() | |
uses: ./.github/workflows/preview-build-test.yml | |
Deploy: | |
needs: | |
- TestDemoBuild | |
if: success() | |
uses: ./.github/workflows/gh-pages-deploy.yml |