fix: bugs related to find namespaces (#55) #93
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: CI/CD Pipeline | |
on: | |
pull_request: | |
types: ['opened', 'edited', 'reopened', 'synchronize'] | |
push: | |
branches: | |
- main | |
jobs: | |
typecheck: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/[email protected] | |
- name: Use Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: 22 | |
cache: 'pnpm' | |
- run: pnpm install | |
- run: pnpm run build | |
- run: pnpm install | |
- run: pnpm typecheck | |
test: | |
runs-on: ubuntu-22.04 | |
needs: [typecheck] | |
strategy: | |
matrix: | |
node: ['22'] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: '0' | |
- uses: pnpm/[email protected] | |
- name: Use Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: ${{ matrix.node }} | |
cache: 'pnpm' | |
- run: pnpm install | |
- run: pnpm run build | |
- run: pnpm install | |
- run: pnpm run coverage | |
- name: Upload coverage report | |
if: success() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: coverage-report | |
path: coverage/lcov-report/index.html | |
build: | |
strategy: | |
matrix: | |
node: ['22'] | |
runs-on: ubuntu-22.04 | |
needs: [typecheck] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/[email protected] | |
- name: Use Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: ${{ matrix.node }} | |
- run: pnpm install | |
- run: pnpm run build |