Skip to content

Commit 9d5f098

Browse files
authored
Merge pull request #4 from Groupify-SCE/dev
Created a basic react app
2 parents 6ba2970 + 2b4d5ef commit 9d5f098

21 files changed

+18448
-3
lines changed

.eslintrc.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
module.exports = {
2+
env: {
3+
node: true,
4+
es2021: true,
5+
jest: true,
6+
},
7+
extends: [
8+
'react-app',
9+
'react-app/jest',
10+
'plugin:prettier/recommended'
11+
],
12+
plugins: ['prettier'],
13+
rules: {
14+
'prettier/prettier': 'error',
15+
},
16+
};
17+

.github/workflows/cicd.yml

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
name: "CICD"
2+
3+
on:
4+
push:
5+
branches:
6+
- stage
7+
- main
8+
pull_request:
9+
branches:
10+
- main
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout Code
17+
uses: actions/checkout@v3
18+
19+
- name: Setup Node.js
20+
uses: actions/setup-node@v3
21+
with:
22+
node-version: 18
23+
24+
- name: Install Dependencies
25+
run: npm install
26+
27+
- name: Run Build
28+
run: npm run build
29+
30+
test:
31+
runs-on: ubuntu-latest
32+
steps:
33+
- name: Checkout Code
34+
uses: actions/checkout@v3
35+
36+
- name: Setup Node.js
37+
uses: actions/setup-node@v3
38+
with:
39+
node-version: 18
40+
41+
- name: Install Dependencies
42+
run: npm install
43+
44+
- name: Run Test
45+
run: npm test
46+
47+
lint:
48+
runs-on: ubuntu-latest
49+
steps:
50+
- name: Checkout Code
51+
uses: actions/checkout@v3
52+
53+
- name: Setup Node.js
54+
uses: actions/setup-node@v3
55+
with:
56+
node-version: 18
57+
58+
- name: Install Dependencies
59+
run: npm install
60+
61+
- name: Run Lint
62+
run: npm run lint
63+
64+
deploy:
65+
needs: [build, test, lint]
66+
runs-on: ubuntu-latest
67+
if: github.ref == 'refs/heads/main'
68+
steps:
69+
- name: Deploy
70+
run: curl -X POST "$DEPLOY_URL"
71+
env:
72+
DEPLOY_URL: ${{ secrets.DEPLOY_URL }}

0 commit comments

Comments
 (0)