preview-release #179
This file contains hidden or 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: Web Tests | |
| on: | |
| push: | |
| branches: [ main, next ] | |
| paths: | |
| - 'apps/web/**' | |
| - 'packages/**' | |
| - 'cli/**' | |
| - '.github/workflows/web-tests.yml' | |
| pull_request: | |
| branches: [ main, next ] | |
| paths: | |
| - 'apps/web/**' | |
| - 'packages/**' | |
| - 'cli/**' | |
| - '.github/workflows/web-tests.yml' | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| name: Unit & Integration Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: 9 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| cache: 'pnpm' | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Build blog content | |
| run: pnpm --filter madea-blog-core build | |
| - name: Build web | |
| run: pnpm build:web | |
| - name: Run unit tests | |
| run: pnpm test | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version: '1.23' | |
| - name: Build & Install Yapi CLI | |
| run: | | |
| make build | |
| sudo cp ./cli/bin/yapi /usr/local/bin/yapi | |
| yapi version | |
| - name: Run yapi integration tests | |
| uses: ./integrations/github-action | |
| with: | |
| skip-install: true | |
| command: yapi test ./apps/web/yapi --start="pnpm --filter @yapi/web start --port 3000" | |