fixed swagger issues and ran prettier #33
Workflow file for this run
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: [ master, feature/* ] | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [20.x, 22.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 project | |
| run: npm run build | |
| - name: Run type checking | |
| run: npm run test:type-check | |
| - name: Check code formatting | |
| run: npm run format:check | |
| - name: Run tests | |
| run: npm run test:ci | |
| - name: Test with example schemas | |
| run: | | |
| npx prisma generate --schema=tests/schemas/basic.prisma | |
| npx prisma generate --schema=tests/schemas/comprehensive.prisma | |
| package-test: | |
| runs-on: ubuntu-latest | |
| needs: test | |
| 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 and package | |
| run: | | |
| npm run build | |
| ./package.sh | |
| - name: Test package integrity | |
| run: | | |
| cd package | |
| npm pack --dry-run | |
| - name: Upload package artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: package-build | |
| path: package/ | |
| retention-days: 7 |