Skip to content

Commit

Permalink
Merge pull request #48 from sombraSoft/tooling/ci-improvement
Browse files Browse the repository at this point in the history
Add formatting and linting checks to CI
  • Loading branch information
filipepacheco committed May 11, 2024
2 parents cf2e38e + 18afdf7 commit 7abcf8e
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: CI

on:
pull_request:
branches:
- master
- develop

jobs:
build:
runs-on: ubuntu-latest

steps:
# Check out the source
- name: Checkout Source
uses: actions/checkout@v4
# Setup node.js and cache
- name: "Setup node.js"
uses: actions/setup-node@v4
with:
node-version: "18.x"
cache: 'npm'
cache-dependency-path: ./package-lock.json
# Install dependencies
- name: Install dependencies
run: npm ci
# Lint App
- name: Lint App
run: npm run lint:ci
# Build App
- name: Build App
run: npm run build
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"start:debug": "nest start --debug --watch",
"start:prod": "node dist/main",
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
"lint:ci": "eslint \"{src,apps,libs,test}/**/*.ts\" --format=stylish",
"test": "jest",
"test:watch": "jest --watch",
"test:cov": "jest --coverage",
Expand Down

0 comments on commit 7abcf8e

Please sign in to comment.