Skip to content

feat: add code quality tooling with ESLint, Prettier and CI workflows #1

feat: add code quality tooling with ESLint, Prettier and CI workflows

feat: add code quality tooling with ESLint, Prettier and CI workflows #1

Workflow file for this run

name: Code Quality & Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
quality:
name: Code Quality & Tests
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 'lts/*'
cache: 'npm'
- name: Install dependencies
run: npm clean-install
- name: Verify dependency signatures
run: npm audit signatures
- name: Check code formatting
run: npm run format:check
- name: Run linter
run: npm run lint
- name: Run tests with coverage
run: npm run test:coverage
- name: Upload coverage reports
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: coverage/
- name: Report status
if: always()
run: |
if [ ${{ job.status }} == 'success' ]; then
echo "✅ All code quality checks and tests passed!"
else
echo "❌ Some checks failed. Please review the logs above."
exit 1
fi