ci: add Gitea Actions workflow
This commit is contained in:
1 parent
da390e447f
commit
cc95a0d690
1 file changed
+50
@@ -0,0 +1,50 @@
|
||||
name: CI
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
|
||||
env:
|
||||
NEXT_TELEMETRY_DISABLED: "1"
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: node:22-slim
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- run: corepack enable && corepack prepare [email protected] --activate
|
||||
- run: pnpm install --frozen-lockfile
|
||||
- run: pnpm biome:lint
|
||||
|
||||
typecheck:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: node:22-slim
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- run: corepack enable && corepack prepare [email protected] --activate
|
||||
- run: pnpm install --frozen-lockfile
|
||||
- run: pnpm typecheck
|
||||
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: node:22-slim
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- run: corepack enable && corepack prepare [email protected] --activate
|
||||
- run: pnpm install --frozen-lockfile
|
||||
- run: pnpm test
|
||||
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: node:22-slim
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- run: corepack enable && corepack prepare [email protected] --activate
|
||||
- run: pnpm install --frozen-lockfile
|
||||
- run: pnpm build
|
||||
Reference in new issue
Block a user