feat: update continuous integration

This commit is contained in:
Krzysztof Durek
2024-07-15 13:59:21 +02:00
parent 382208ae13
commit 6e28545c3f
5 changed files with 31 additions and 10 deletions

View File

@@ -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' || '' }}
./docker/push.sh ${{ github.ref_name == 'canary' && 'canary' || '' }}

View File

@@ -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({

View File

@@ -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",

2
pnpm-lock.yaml generated
View File

@@ -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

View File

@@ -47,6 +47,7 @@
"dist",
"webpack.config.server.js",
"migration.ts",
"setup.ts"
"setup.ts",
"__test__"
]
}