Skip to content

Commit

Permalink
fix: add single job for main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
HunnySajid committed Sep 12, 2024
1 parent 00726a6 commit 4d337ca
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 28 deletions.
32 changes: 5 additions & 27 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,47 +9,25 @@ on:
- main

jobs:
lint:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Install Dependencies
run: npm install
run: npm ci

- name: Run ESLint
run: npm run lint

prettier:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Dependencies
run: npm ci
- name: Run Prettier Formatter
run: npm run format

typescript:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Dependencies
run: npm install
- name: Check TypeScript Types
run: npm run tsc

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Dependencies
run: npm install
- name: Run Tests
run: npm run test

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Dependencies
run: npm install
- name: Build Application
run: npm run build
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"prepare": "husky",
"build": "tsc -p tsconfig.build.json",
"test": "vitest run",
"format": "prettier --write .",
"format": "prettier --write 'src/**/*.{ts,json}'",
"lint": "eslint src",
"tsc": "bash -c tsc -p tsconfig.json",
"docs:build": "typedoc src/index.ts --out out",
Expand Down
1 change: 1 addition & 0 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"compilerOptions": {
"declaration": true,
"declarationMap": true,
"noEmit": false,
"outDir": "dist"
}
}

0 comments on commit 4d337ca

Please sign in to comment.