Containerize k8s #4
Workflow file for this run
This file contains hidden or 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
name: Lint Code | |
on: | |
push: | |
branches: [master, main] | |
pull_request: | |
branches: [master, main] | |
jobs: | |
lint_python: | |
name: Lint Python Files | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install flake8 | |
- name: Run Linter (non-blocking) | |
run: | | |
# Show issues but don't fail the job | |
find . -name "*.py" -exec flake8 --exit-zero {} + | |
echo "Python lint completed" | |
lint_js: | |
name: Lint JavaScript Files | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
- name: Install JSHint | |
run: npm install jshint --global | |
- name: Run Linter (non-blocking) | |
run: | | |
# Lint any JS under server/database; don't fail if issues exist | |
find ./server/database -name "*.js" -exec jshint {} + || true | |
echo "JS lint completed" |