Skip to content

Commit

Permalink
Merge pull request #2 from JeevantVerma/test-branch
Browse files Browse the repository at this point in the history
added frontend workflow(github)
  • Loading branch information
JeevantVerma authored Jun 16, 2024
2 parents e8c478c + 84c95dd commit ad49754
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 11 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/check-frontend-pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Frontend CI

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '16'

- name: Install dependencies
run: npm install
working-directory: ./frontend

# - name: Run tests
# run: npm test
# working-directory: ./frontend

- name: Lint code
run: npm run lint
working-directory: ./frontend

# - name: Check formatting
# run: npm run format:check
# working-directory: ./frontend

- name: Build the project
run: npm run build
working-directory: ./frontend
4 changes: 2 additions & 2 deletions frontend/src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { Container, Typography } from '@mui/material';
// import React from 'react';
import { Container } from '@mui/material';
import MainContentSection from './Maincontent';
import "./App.css"
const App = () => {
Expand Down
19 changes: 10 additions & 9 deletions frontend/src/Maincontent.jsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
// /*
import React, { useState } from "react";
// import React from "react";
import { useState } from "react";
import {
TextField,
Button,
Grid,
createTheme,
ThemeProvider,
// createTheme,
// ThemeProvider,
Typography,
Box,
// Box,
Snackbar,
MenuItem,
FormControl,
Expand All @@ -22,11 +23,11 @@ import ContentCopyIcon from "@mui/icons-material/ContentCopy";
import LaunchIcon from "@mui/icons-material/Launch";
import axios from "axios";

const darkTheme = createTheme({
palette: {
mode: "dark",
},
});
// const darkTheme = createTheme({
// palette: {
// mode: "dark",
// },
// });

const MainContentSection = () => {
const [longUrl, setLongUrl] = useState("");
Expand Down

0 comments on commit ad49754

Please sign in to comment.