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

@@ -12,24 +12,37 @@ on:
jobs: jobs:
build-app: build-app:
if: github.event_name == 'pull_request' if: github.event_name == 'pull_request'
runs-on: ubuntu-20.04 runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
node-version: [18.18.0] node-version: [18.18.0]
steps: steps:
- uses: actions/checkout@v3 - name: Check out the code
- uses: pnpm/action-setup@v3 uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with: with:
version: 8 version: 8
- name: Use Node.js ${{ matrix.node-version }} - name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3 uses: actions/setup-node@v4
with: with:
node-version: ${{ matrix.node-version }} node-version: ${{ matrix.node-version }}
cache: 'pnpm' cache: 'pnpm'
- name: Install dependencies - name: Install dependencies
run: pnpm install run: pnpm install
- name: Run format and lint
run: pnpm biome ci
- name: Run type check
run: pnpm typecheck
- name: Run Build - name: Run Build
run: pnpm build run: pnpm build
- name: Run Tests - name: Run Tests
run: pnpm run test run: pnpm run test
@@ -38,7 +51,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Check out the code - name: Check out the code
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3

View File

@@ -12,6 +12,12 @@ const __dirname = path.dirname(__filename);
/** @type {import("next").NextConfig} */ /** @type {import("next").NextConfig} */
const nextConfig = { const nextConfig = {
reactStrictMode: true, reactStrictMode: true,
eslint: {
ignoreDuringBuilds: true,
},
typescript: {
ignoreBuildErrors: true,
},
webpack: (config) => { webpack: (config) => {
config.plugins.push( config.plugins.push(
new CopyWebpackPlugin({ new CopyWebpackPlugin({

View File

@@ -23,6 +23,7 @@
"check": "biome check", "check": "biome check",
"format": "biome format", "format": "biome format",
"lint": "biome lint", "lint": "biome lint",
"typecheck": "tsc",
"db:seed": "tsx -r dotenv/config ./server/db/seed.ts", "db:seed": "tsx -r dotenv/config ./server/db/seed.ts",
"db:clean": "tsx -r dotenv/config ./server/db/reset.ts", "db:clean": "tsx -r dotenv/config ./server/db/reset.ts",
"docker:build": "./docker/build.sh", "docker:build": "./docker/build.sh",
@@ -124,7 +125,7 @@
"zod": "^3.23.4" "zod": "^3.23.4"
}, },
"devDependencies": { "devDependencies": {
"@biomejs/biome": "^1.8.3", "@biomejs/biome": "1.8.3",
"@types/bcrypt": "5.0.2", "@types/bcrypt": "5.0.2",
"@types/dockerode": "3.3.23", "@types/dockerode": "3.3.23",
"@types/js-yaml": "4.0.9", "@types/js-yaml": "4.0.9",

2
pnpm-lock.yaml generated
View File

@@ -272,7 +272,7 @@ dependencies:
devDependencies: devDependencies:
'@biomejs/biome': '@biomejs/biome':
specifier: ^1.8.3 specifier: 1.8.3
version: 1.8.3 version: 1.8.3
'@types/bcrypt': '@types/bcrypt':
specifier: 5.0.2 specifier: 5.0.2

View File

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