diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 36491813..27805973 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -2,7 +2,7 @@ name: Pull request on: pull_request: branches: - - main + - main - canary push: @@ -12,24 +12,37 @@ on: jobs: build-app: if: github.event_name == 'pull_request' - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest strategy: matrix: node-version: [18.18.0] steps: - - uses: actions/checkout@v3 - - uses: pnpm/action-setup@v3 + - name: Check out the code + uses: actions/checkout@v4 + + - name: Setup pnpm + uses: pnpm/action-setup@v4 with: version: 8 + - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} cache: 'pnpm' + - name: Install dependencies run: pnpm install + + - name: Run format and lint + run: pnpm biome ci + + - name: Run type check + run: pnpm typecheck + - name: Run Build run: pnpm build + - name: Run Tests run: pnpm run test @@ -38,7 +51,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out the code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 @@ -56,4 +69,4 @@ jobs: - name: Build and push Docker image using custom script run: | chmod +x ./docker/push.sh - ./docker/push.sh ${{ github.ref_name == 'canary' && 'canary' || '' }} \ No newline at end of file + ./docker/push.sh ${{ github.ref_name == 'canary' && 'canary' || '' }} diff --git a/next.config.mjs b/next.config.mjs index f3f23b02..46b4268c 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -12,6 +12,12 @@ const __dirname = path.dirname(__filename); /** @type {import("next").NextConfig} */ const nextConfig = { reactStrictMode: true, + eslint: { + ignoreDuringBuilds: true, + }, + typescript: { + ignoreBuildErrors: true, + }, webpack: (config) => { config.plugins.push( new CopyWebpackPlugin({ diff --git a/package.json b/package.json index 112c0e61..e7859b7c 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,7 @@ "check": "biome check", "format": "biome format", "lint": "biome lint", + "typecheck": "tsc", "db:seed": "tsx -r dotenv/config ./server/db/seed.ts", "db:clean": "tsx -r dotenv/config ./server/db/reset.ts", "docker:build": "./docker/build.sh", @@ -124,7 +125,7 @@ "zod": "^3.23.4" }, "devDependencies": { - "@biomejs/biome": "^1.8.3", + "@biomejs/biome": "1.8.3", "@types/bcrypt": "5.0.2", "@types/dockerode": "3.3.23", "@types/js-yaml": "4.0.9", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7c47af8c..cafe27e3 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -272,7 +272,7 @@ dependencies: devDependencies: '@biomejs/biome': - specifier: ^1.8.3 + specifier: 1.8.3 version: 1.8.3 '@types/bcrypt': specifier: 5.0.2 diff --git a/tsconfig.json b/tsconfig.json index de7e8a04..3daa529d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -47,6 +47,7 @@ "dist", "webpack.config.server.js", "migration.ts", - "setup.ts" + "setup.ts", + "__test__" ] }