Skip to content

Commit

Permalink
Merge pull request #26 from CalcagnoLoic/develop
Browse files Browse the repository at this point in the history
refactoring workflow
  • Loading branch information
CalcagnoLoic authored May 30, 2024
2 parents 2a3685a + de06a18 commit efc0665
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 33 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Continuous integration devjobs

on:
pull_request:
paths:
- 'frontend/**'
branches:
- main

jobs:
CI:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Run tests in frontend
run: |
cd frontend
npm i
npm run lint
npm run test
1 change: 0 additions & 1 deletion frontend/.dockerignore

This file was deleted.

21 changes: 0 additions & 21 deletions frontend/.github/workflow/continuousIntegration.yml

This file was deleted.

10 changes: 0 additions & 10 deletions frontend/Dockerfile

This file was deleted.

2 changes: 1 addition & 1 deletion frontend/src/hooks/useConvertedColor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const useConvertedColor = (hexValue: string) => {
const hexColor = convertHSLtoHex({ hue, saturation, lightness });
setConvertedColor(hexColor);
}
}, []);
}, [hexValue]);

return convertedColor;
};

0 comments on commit efc0665

Please sign in to comment.