Skip to content

Commit 7abcf8e

Browse files
Merge pull request #48 from sombraSoft/tooling/ci-improvement
Add formatting and linting checks to CI
2 parents cf2e38e + 18afdf7 commit 7abcf8e

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
- develop
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
# Check out the source
15+
- name: Checkout Source
16+
uses: actions/checkout@v4
17+
# Setup node.js and cache
18+
- name: "Setup node.js"
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: "18.x"
22+
cache: 'npm'
23+
cache-dependency-path: ./package-lock.json
24+
# Install dependencies
25+
- name: Install dependencies
26+
run: npm ci
27+
# Lint App
28+
- name: Lint App
29+
run: npm run lint:ci
30+
# Build App
31+
- name: Build App
32+
run: npm run build

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"start:debug": "nest start --debug --watch",
1414
"start:prod": "node dist/main",
1515
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
16+
"lint:ci": "eslint \"{src,apps,libs,test}/**/*.ts\" --format=stylish",
1617
"test": "jest",
1718
"test:watch": "jest --watch",
1819
"test:cov": "jest --coverage",

0 commit comments

Comments
 (0)