Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

34 implement initial cicd pipelines #35

Open
wants to merge 15 commits into
base: dev
Choose a base branch
from
4 changes: 3 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
],
"rules": {
"@typescript-eslint/no-var-requires": 0,
"@typescript-eslint/no-explicit-any": 0
"@typescript-eslint/no-explicit-any": 0,
"react/react-in-jsx-scope": "off",
"react/jsx-uses-react": "off"
}
}
15 changes: 15 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
env:
browser: true
es2021: true
extends:
- eslint:recommended
- plugin:@typescript-eslint/recommended
- plugin:react/recommended
parser: '@typescript-eslint/parser'
parserOptions:
ecmaVersion: latest
sourceType: module
plugins:
- '@typescript-eslint'
- react
rules: {}
29 changes: 29 additions & 0 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name:

on:
pull_request:
branches:
- dev
- release
- main
push:
branches:
- dev
- release
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install modules
run: yarn add eslint @typescript-eslint/eslint-plugin@latest eslint-plugin-react @typescript-eslint/parser
- name: Run ESLint
# echo 0 ensures the CI passess even after
run: yarn run eslint . --format json --ext .js,.jsx,.ts,.tsx --output-file eslint-report.json || echo 0
- name: ESLint Reporter
uses: rahmanrafi/eslint-reporter-action@v3
with:
json: ./eslint-report.json
title: ESLint Report
Loading