Skip to content

Commit

Permalink
attempt to resolve merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
nroh555 committed Jun 6, 2024
2 parents 1d655ee + 6a0ee5c commit f2edd66
Show file tree
Hide file tree
Showing 36 changed files with 1,556 additions and 4,235 deletions.
Binary file added .DS_Store
Binary file not shown.
27 changes: 27 additions & 0 deletions .github/workflows/build-web.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Build DEV

on:
push:
branches-ignore:
- "main"

jobs:
BuildApp:
runs-on: ubuntu-latest
environment: DEV
defaults:
run:
working-directory: ./web

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20

- run: yarn

- run: yarn test

- name: Build
run: yarn build
26 changes: 26 additions & 0 deletions .github/workflows/notification.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Pull Request Notification

on:
pull_request:
types: [opened, reopened, closed]

jobs:
pull_request_created:
if: github.event_name == 'pull_request' && github.event.action == 'opened' || github.event.action == 'reopened'
runs-on: ubuntu-latest
steps:
- name: Discord Webhook Action
uses: tsickert/[email protected]
with:
webhook-url: ${{ secrets.DISCORD_WEBHOOK_URL }}
content: "Pull request opened: ${{ github.event.pull_request.title }} | Link: [View Pull Request](${{ github.event.pull_request.html_url }})"

pull_request_merged:
if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Discord Webhook Action
uses: tsickert/[email protected]
with:
webhook-url: ${{ secrets.DISCORD_WEBHOOK_URL }}
content: "Pull request merged: ${{ github.event.pull_request.title }}"
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ Credits (Add your name here for the first commit):
- Diya
- Gury
- Sai Kiran
- Naren
9 changes: 9 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [],
theme: {
extend: {},
},
plugins: [],
}

22 changes: 22 additions & 0 deletions web/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
# How To Run

The following web application is built using React + Vite. To run the application in development environment follow the commands below

```bash
yarn
```
```bash
yarn dev
```

To build the application run the following command below
```bash
yarn build
```

To run the test, follow the command below
```bash
yarn test
```


# React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Expand Down
15 changes: 15 additions & 0 deletions web/__test__/ExecScreen.test.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { expect, it } from "vitest";
import { render, screen } from "@testing-library/react";
import React from "react";
import ExecScreen from "../src/screens/ExecScreen";
import { describe } from "node:test";
import { execs } from "../src/data/data";

describe("ExecScreen component", () => {
it("should display President", () => {
render(<ExecScreen execs={execs} />);
const message = screen.getAllByText(/President/i);
const president = message[0];
expect(president).toBeInTheDocument();
});
});
13 changes: 13 additions & 0 deletions web/__test__/TestScreen.test.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { expect, it } from "vitest";
import { render, screen } from "@testing-library/react";
import React from "react";
import TestScreen from "../src/screens/Test";
import { describe } from "node:test";

describe("TestScreen component", () => {
it("should display the 'Test' message", () => {
render(<TestScreen />);
const message = screen.getByText(/Test/i);
expect(message).toBeInTheDocument();
});
});
Binary file added web/exec.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit f2edd66

Please sign in to comment.