Skip to content

Commit 6fd5d7b

Browse files
adding ci.yml file for front end
1 parent f1ddf80 commit 6fd5d7b

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: ReactJS CI/CD
2+
3+
on:
4+
push:
5+
branches:
6+
- adding-to-ci-pipeline # changing this temp from main to my current branch
7+
pull_request:
8+
branches:
9+
- frontend # Set the default working directory
10+
11+
jobs:
12+
lint:
13+
name: Run ESLint
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
20+
- name: Set up Node.js
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: 20
24+
25+
- name: Install dependencies
26+
run: npm install
27+
28+
- name: Run ESLint
29+
run: npx eslint . --ext .js,.jsx,.ts,.tsx

0 commit comments

Comments
 (0)