Skip to content

Commit

Permalink
Remove code climate
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin-Umali committed Sep 1, 2023
1 parent 47db230 commit 9c4f498
Show file tree
Hide file tree
Showing 4 changed files with 413 additions and 102 deletions.
58 changes: 0 additions & 58 deletions .github/workflows/lint_and_code_smell_check.yml

This file was deleted.

53 changes: 53 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Lint and Code Quality Check

on:
push:
branches:
- main # change this to your default branch if it's not named 'main'
pull_request:
branches:
- main # change this to your default branch if it's not named 'main'

jobs:
setup:
runs-on: ubuntu-latest
outputs:
cache-hit: ${{ steps.cache.outputs.cache-hit }}

steps:
- name: Check out code
uses: actions/checkout@v2

- name: Setup Node.js with cache
uses: actions/setup-node@v2
with:
node-version: "14"
cache: "npm"

- name: Cache node modules
uses: actions/cache@v2
id: cache
with:
path: node_modules
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-
- name: Install dependencies
run: npm ci

eslint:
needs: setup
runs-on: ubuntu-latest
steps:
- name: Check if node_modules is cached
if: steps.setup.outputs.cache-hit != 'true'
run: npm ci

- name: Run ESLint
run: npx eslint './**/*.ts' --format=json --output-file=eslint.json

- name: Upload ESLint results
uses: github/codeql-action/upload-sarif@v1
with:
sarif_file: eslint.json
Loading

0 comments on commit 9c4f498

Please sign in to comment.