generated from UoaWDCC/ssr-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
36 changed files
with
1,556 additions
and
4,235 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,4 @@ Credits (Add your name here for the first commit): | |
- Diya | ||
- Gury | ||
- Sai Kiran | ||
- Naren |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/** @type {import('tailwindcss').Config} */ | ||
module.exports = { | ||
content: [], | ||
theme: { | ||
extend: {}, | ||
}, | ||
plugins: [], | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
}); | ||
}); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.