Skip to content

Commit

Permalink
CI pipeline changes
Browse files Browse the repository at this point in the history
  • Loading branch information
git-init-priyanshu committed Sep 11, 2024
1 parent 8fa3063 commit 84b8dc6
Show file tree
Hide file tree
Showing 5 changed files with 166 additions and 183 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: CI/CD Pipeline

on:
push:
pull_request:
branches:
- main
- '**'
paths-ignore:
- "README.md"

Expand All @@ -12,18 +12,21 @@ permissions:
contents: read

jobs:
integration:
name: Continuous Integration
Continuous_Integration:
name: Check for Linting and Formatting
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Install dependancies
run: npm install

- name: Lint code
run: npm run lint
run: npm run lint:chec

- name: Format code
run: npm run format
- name: Check Formatting
run: npm run format:check

- name: Run unit tests
run: echo "Running unit tests"
Expand Down
10 changes: 10 additions & 0 deletions eslint.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
parser: '@babel/eslint-parser',
extends: ['eslint:recommended', 'plugin:react/recommended'],
plugins: ['react', 'react-hooks'],
rules: {
'no-unused-vars': 'error',
'react-hooks/exhaustive-deps': 'error',
'semi': ['error', 'always'],
},
};
Loading

0 comments on commit 84b8dc6

Please sign in to comment.