Merge pull request #385 from nulib/thumbs #496
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: Run NodeJS Tests | |
| on: | |
| push: | |
| paths: | |
| - ".github/workflows/test-node.yml" | |
| - "api/**" | |
| workflow_dispatch: | |
| jobs: | |
| test-api: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ./api | |
| env: | |
| AWS_ACCESS_KEY_ID: ci | |
| AWS_SECRET_ACCESS_KEY: ci | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: oven-sh/setup-bun@v2 | |
| - run: bun install | |
| - name: Check code style | |
| run: bun run lint && bun run prettier | |
| - name: Run tests | |
| run: bun run test:coverage | |
| - name: Validate OpenAPI spec | |
| run: bun run validate-spec | |
| test-mcp: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: ./mcp | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - uses: oven-sh/setup-bun@v2 | |
| - run: bun install | |
| - run: bun install | |
| - name: Run tests | |
| run: bun run test:coverage |