core(ci/husky): Added husky and CI Jobs
* core(package): adding rules in package * feat(husky): Fixed lint job and miscellaneous fixes - Changed lint.yml job name - Fixed pnpm version in package.json to be straight version 10 - Added act in flake.nix to run actions locally - Added all dist/ files to eslint ignored files - Fixed Dockerfile to use correct casing (as -> AS)
This commit is contained in:
parent
ff0e218803
commit
8e4081f494
11 changed files with 113 additions and 15 deletions
37
.github/workflows/build.yml
vendored
Normal file
37
.github/workflows/build.yml
vendored
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
name: Build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- "**"
|
||||
pull_request:
|
||||
branches:
|
||||
- "**"
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: build
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '22'
|
||||
- name: Setup pnpm
|
||||
uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: 10
|
||||
run_install: false
|
||||
- name: Install dependencies with pnpm
|
||||
working-directory: ./src
|
||||
run: pnpm install
|
||||
- name: Build
|
||||
working-directory: ./src
|
||||
run: pnpm run build
|
||||
|
||||
10
.github/workflows/lint.yml
vendored
10
.github/workflows/lint.yml
vendored
|
|
@ -1,4 +1,4 @@
|
|||
name: Build & Linter
|
||||
name: Linter
|
||||
|
||||
on:
|
||||
push:
|
||||
|
|
@ -12,8 +12,8 @@ permissions:
|
|||
contents: read
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build & Typecheck
|
||||
linter:
|
||||
name: Linter
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
|
|
@ -34,7 +34,3 @@ jobs:
|
|||
- name: Check linting
|
||||
working-directory: ./src
|
||||
run: pnpm exec eslint . --max-warnings=0
|
||||
- name: Build
|
||||
working-directory: ./src
|
||||
run: pnpm run build
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue