This commit is contained in:
parent
29c6cb9c4a
commit
683d6c7ab6
1 changed files with 27 additions and 0 deletions
27
.forgejo/workflows/build_check.yml
Normal file
27
.forgejo/workflows/build_check.yml
Normal file
|
@ -0,0 +1,27 @@
|
|||
name: Build Check
|
||||
on:
|
||||
push:
|
||||
branches: ["main"]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Test Build
|
||||
runs-on: node20-bookworm
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Setup NodeJS
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
- name: Install PNPM
|
||||
run: |
|
||||
corepack enable
|
||||
corepack prepare pnpm@latest --activate
|
||||
npm i -g typescript
|
||||
- name: Install packages
|
||||
run: pnpm i
|
||||
- name: TypeScript Build
|
||||
run: tsc
|
||||
- name: ESLint Check
|
||||
run: pnpm run lint
|
Loading…
Reference in a new issue