Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature github actions #119

Merged
merged 6 commits into from
Sep 14, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/dev-pulse-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Devpulse CI

on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]

jobs:
test-and-build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '18'

- name: Install dependencies
run: npm install --legacy-peer-deps

- name: Run tests
run: npm test

- name: Build
run: npm run build
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"@types/react-dom": "^18.0.6",
"@types/react-table": "^7.7.12",
"@types/redux-state-sync": "^3.1.5",
"@types/uglify-js": "^3.17.5",
"@typescript-eslint/eslint-plugin": "^5.47.0",
"autoprefixer": "^10.4.7",
"babel-loader": "^8.2.5",
Expand Down Expand Up @@ -107,7 +108,6 @@
"popper.js": "^1.16.1",
"react-datepicker": "^4.8.0",
"react-hook-form": "^7.45.4",
"react-hooks-useform": "^0.1.86",
"react-hot-toast": "^2.4.1",
"react-i18next": "^11.18.6",
"react-icons": "^4.6.0",
Expand Down
1 change: 0 additions & 1 deletion src/components/roles&permissions/ListAllUsers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,6 @@ const ListAllUsers: FunctionComponent<Props> = (props) => {
</div>

<button
placeholder="Role"
className=" lg:absolute text-md text-sm text-center text-white rounded dark:bg-green bg-primary w-[120px] lg:right-[80px] lg:w-[150px] py-2 px-3"
onClick={Open}
>
Expand Down
26 changes: 20 additions & 6 deletions src/pages/updateTrainee/traineUpdate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,11 @@ const TraineeUpdate = (props: any) => {
});
getDistricts(e.target.value);
}}
placeholder="Select province"
>
<option value="" disabled>
Select province
</option>

{provinces?.map((province: any) => (
<option
className="dark:bg-dark-tertiary dark:text-white p-3 dark:hover:bg-dark-frame-bg"
Expand Down Expand Up @@ -311,8 +314,11 @@ const TraineeUpdate = (props: any) => {
});
getSectors(formData.province, e.target.value);
}}
placeholder="Select district"
>

<option value="" disabled>
Select district
</option>
<option
className="dark:bg-dark-tertiary dark:text-white hidden"
value={traineeData.district}
Expand Down Expand Up @@ -346,8 +352,10 @@ const TraineeUpdate = (props: any) => {
})
}
name="sector"
placeholder="Select sector"
>
<option value="" disabled>
Select sector
</option>
<option
className="dark:bg-dark-tertiary dark:text-white hidden"
value={traineeData.sector}
Expand Down Expand Up @@ -559,8 +567,10 @@ const TraineeUpdate = (props: any) => {
level_education: e.target.value,
})
}
placeholder="Please select level"
>
<option value="" disabled>
Select education level
</option>
{options?.educationOptions?.map((option: any) => (
<option
className="dark:bg-dark-tertiary p-3 dark:text-white dark:hover:bg-dark-frame-bg"
Expand Down Expand Up @@ -623,7 +633,6 @@ const TraineeUpdate = (props: any) => {
</label>
<select
className="dark:bg-dark-tertiary dark:text-white py-2 px-3 shadow appearance-none rounded w-full leading-tight focus:outline-none focus:shadow-outline"
placeholder="Interview decisison"
defaultValue={traineeData.interview_decision}
onChange={(e) =>
setFormData({
Expand All @@ -632,6 +641,9 @@ const TraineeUpdate = (props: any) => {
})
}
>
<option value="" disabled>
Interview decision
</option>
{options?.interviewOptions?.map((option: any) => (
<option
className="dark:bg-dark-tertiary p-3 dark:text-white dark:hover:bg-dark-frame-bg"
Expand All @@ -650,7 +662,6 @@ const TraineeUpdate = (props: any) => {
<select
className="dark:bg-dark-tertiary dark:text-white shadow py-2 px-3 appearance-none rounded w-full leading-tight focus:outline-none focus:shadow-outline"
ref={cycleRef}
placeholder="Please select cycle"
defaultValue={traineeData?.trainee_id?.cycle_id?.id}
onChange={(e) =>
setFormData({
Expand All @@ -659,6 +670,9 @@ const TraineeUpdate = (props: any) => {
})
}
>
<option value="" disabled>
Please select cycle
</option>
{cycles?.map((cycle: any) => (
<option
className="dark:bg-dark-tertiary dark:text-white dark:hover:bg-dark-frame-bg p-3"
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = () => {
mode: prod ? "production" : "development",
entry: "./src/index.tsx",
output: {
path: path.resolve(__dirname, "dist/"),
path: path.resolve(__dirname, "build/"),
publicPath: "/",
},
devServer: {
Expand Down
Loading