test: Update test scripts #269
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 | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
jobs: | |
run_checks: | |
name: Run code checks | |
uses: spuxx-dev/ci-cd/.github/workflows/[email protected] | |
with: | |
PNPM_BUILD: true | |
run_unit_tests: | |
name: Run tests (vitest) | |
uses: spuxx-dev/ci-cd/.github/workflows/[email protected] | |
with: | |
PNPM_BUILD: true | |
run_release_please: | |
name: Release Please | |
uses: spuxx-dev/ci-cd/.github/workflows/[email protected] | |
needs: | |
- run_checks | |
- run_unit_tests | |
secrets: | |
TOKEN: ${{ secrets.RELEASE_PLEASE_TOKEN }} | |
deploy_pages: | |
name: Deploy Storybook to GitHub Pages | |
runs-on: ubuntu-latest | |
needs: | |
- run_checks | |
- run_unit_tests | |
strategy: | |
matrix: | |
node-version: [22] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'pnpm' | |
- uses: bitovi/[email protected] | |
with: | |
install_command: pnpm -r install | |
build_command: pnpm build:storybook | |
path: apps/storybook/dist | |
checkout: false |