Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchangelWTF committed Jan 14, 2025
1 parent ebdc51f commit 70355cf
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 8 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/check_types.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Run Type Check

on:
workflow_dispatch:
push:
paths-ignore:
- '**/*.md'
pull_request:
paths-ignore:
- '**/*.md'

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '22'

- name: Install dependencies
run: npm install

- name: Build
run: npm run check-types

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: NPM Build & Lint
name: Run Code Linter

on:
workflow_dispatch:
Expand All @@ -25,9 +25,6 @@ jobs:
- name: Install dependencies
run: npm install

- name: Build
run: npm run build

- name: Lint
run: npm run lint

9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,21 @@
"scripts": {
"setup": "npm i",
"lint": "npx @biomejs/biome lint ./",
"check-types": "npx tsc -noEmit -p tsconfig.types.json",
"build": "node ./build.mjs",
"buildinfo": "node ./build.mjs --verbose"
},
"devDependencies": {
"@biomejs/biome": "^1.8.3",
"@types/node": "22.10.2",
"@biomejs/biome": "^1.9.4",
"@types/node": "22.10.5",
"@types/ws": "~8.5",
"archiver": "^6.0",
"fs-extra": "~11.2",
"ignore": "^5.2",
"tsyringe": "~4.8",
"typescript": "~5.5",
"typescript": "5.7.3",
"winston": "~3.13"
},
"author": "Fika",
"license": "CC-BY-NC-SA-4.0"
}
}
6 changes: 6 additions & 0 deletions tsconfig.types.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"skipLibCheck": true
}
}

0 comments on commit 70355cf

Please sign in to comment.