Skip to content

Commit 6a40f1d

Browse files
Copilotlippytm
andcommitted
Final workflow improvements and date formatting
- Use npm --if-present for cleaner optional script execution - Ensure hashFiles condition properly checks for empty string - Update dates to month-year format for clarity Co-authored-by: lippytm <65956507+lippytm@users.noreply.github.com>
1 parent 57d3051 commit 6a40f1d

3 files changed

Lines changed: 6 additions & 21 deletions

File tree

.github/workflows/lint-test.yml

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
python-lint-test:
1515
name: Python Lint & Test
1616
runs-on: ubuntu-latest
17-
if: hashFiles('backend/requirements.txt')
17+
if: hashFiles('backend/requirements.txt') != ''
1818
permissions:
1919
contents: read
2020

@@ -81,31 +81,16 @@ jobs:
8181

8282
- name: Run linter
8383
working-directory: ./${{ matrix.directory }}
84-
run: |
85-
if npm run lint --silent 2>&1 | grep -q "missing script"; then
86-
echo "No lint script found, skipping"
87-
else
88-
npm run lint
89-
fi
84+
run: npm run lint --if-present
9085

9186
- name: Check formatting
9287
working-directory: ./${{ matrix.directory }}
93-
run: |
94-
if npm run format:check --silent 2>&1 | grep -q "missing script"; then
95-
echo "No format:check script found, skipping"
96-
else
97-
npm run format:check
98-
fi
88+
run: npm run format:check --if-present
9989

10090
- name: Run tests
10191
working-directory: ./${{ matrix.directory }}
10292
run: npm test
10393

10494
- name: Build
10595
working-directory: ./${{ matrix.directory }}
106-
run: |
107-
if npm run build --silent 2>&1 | grep -q "missing script"; then
108-
echo "No build script found, skipping"
109-
else
110-
npm run build
111-
fi
96+
run: npm run build --if-present

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,4 +423,4 @@ Thank you for contributing to Web3AI! 🚀
423423

424424
---
425425

426-
Last updated: 2026-01-20
426+
Last updated: January 2026

SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,4 +155,4 @@ If you have questions about security but don't have a vulnerability to report, p
155155

156156
---
157157

158-
Last updated: 2026-01-20
158+
Last updated: January 2026

0 commit comments

Comments
 (0)