update doc #33
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: CI | |
| on: | |
| push: | |
| branches: [main, develop] | |
| pull_request: | |
| branches: [main, develop] | |
| jobs: | |
| test: | |
| name: Test & Build | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [18.x, 20.x] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build packages | |
| run: npm run build | |
| - name: Run tests | |
| run: npm run test | |
| - name: Run lint | |
| run: npm run lint --if-present | |
| - name: Check types | |
| run: npm run typecheck --if-present | |
| test-vue-adapter: | |
| name: Test Vue Adapter | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [18.x, 20.x] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build core package | |
| run: npm run build --workspace=@fire-shield/core | |
| - name: Build Vue adapter | |
| run: npm run build --workspace=@fire-shield/vue | |
| - name: Run Vue adapter tests | |
| run: npm run test --workspace=@fire-shield/vue | |
| - name: Check Vue adapter test coverage | |
| run: | | |
| cd packages/adaptor/vue | |
| npx vitest run --coverage --reporter=json --reporter=text || true | |
| continue-on-error: true | |
| test-all-adapters: | |
| name: Test All Adapters | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20.x | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build all packages | |
| run: npm run build | |
| - name: Test all packages | |
| run: | | |
| npm run test --workspace=@fire-shield/core | |
| npm run test --workspace=@fire-shield/vue | |
| npm run test --workspace=@fire-shield/react | |
| npm run test --workspace=@fire-shield/angular | |
| npm run test --workspace=@fire-shield/svelte | |
| npm run test --workspace=@fire-shield/next | |
| npm run test --workspace=@fire-shield/nuxt | |
| npm run test --workspace=@fire-shield/express | |
| npm run test --workspace=@fire-shield/fastify | |
| npm run test --workspace=@fire-shield/hono |