Skip to content

Commit

Permalink
created ci workflow running esLint on every Push or PR to main (#19)
Browse files Browse the repository at this point in the history
* created ci workflow running esLint on every Push or PR to main

* updated yarn

* Fixed the build error by removing the unused imported function which was never created
  • Loading branch information
Rachit1313 authored Nov 7, 2023
1 parent ca5ce63 commit ef90d5c
Show file tree
Hide file tree
Showing 4 changed files with 925 additions and 62 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

# This workflow will run whenever we push commits to the `main` branch, or
# whenever there's a pull request to the `main` branch. See:
# https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#on
on:
pull_request:
branches:
- main
push:
branches:
- main

jobs:
lint:
name: ESLint
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3

- name: Setup node
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'npm'

- name: Install node dependencies
run: npm ci

- name: Run ESLint
run: npm run lint
Loading

0 comments on commit ef90d5c

Please sign in to comment.