Skip to content

Commit 85d889b

Browse files
committed
fix: Update CI/CD configuration, add husky for Git hooks, and enhance test file comments
1 parent 8f666a2 commit 85d889b

4 files changed

Lines changed: 23 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: React CI/CD (CRA → GitHub Pages)
1+
name: React CI/CD
22

33
env:
44
CI: "true"
@@ -24,7 +24,7 @@ concurrency:
2424

2525
jobs:
2626
test:
27-
name: 🧪 Test, Lint & Coverage
27+
name: 🧪 Run Tests and Coverage
2828
runs-on: ubuntu-latest
2929

3030
steps:
@@ -299,7 +299,7 @@ jobs:
299299
eDate=$(escape_html "$(date -u +"%Y-%m-%d %H:%M:%S UTC")")
300300
301301
printf -v MESSAGE '%s\n%s\n%s\n%s\n%s' \
302-
"❌ <b>Pipeline Error Detected</b>" \
302+
"❌ <b>Pipeline Error Detected - CS Queue Calendar</b>" \
303303
"⚠️ <b>Failed Steps:</b> ${eFailedList}" \
304304
"👤 <b>Triggered by:</b> <a href=\"${eAuthorLink}\">${eActor}</a>" \
305305
"🕓 <b>Date:</b> ${eDate}" \

package-lock.json

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
"eslint-plugin-prettier": "^5.5.4",
7272
"eslint-plugin-react-hooks": "^5.2.0",
7373
"globals": "^16.4.0",
74+
"husky": "^9.1.7",
7475
"prettier": "^3.6.2"
7576
},
7677
"browserslist": {

src/__tests__/sample.test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Todo: Write all tests!
2+
13
test("dummy test", () => {
24
expect(true).toBe(true);
35
});

0 commit comments

Comments
 (0)