feat: stricter lint, check pipelines, docker-containers, pnpm
This commit is contained in:
35
.github/workflows/push-lint-check.yml
vendored
Normal file
35
.github/workflows/push-lint-check.yml
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
name: Push Lint Check
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- master
|
||||
- develop
|
||||
- '**'
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
name: Run ESLint on Push
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '18'
|
||||
cache: 'npm'
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Run ESLint
|
||||
run: npm run lint
|
||||
|
||||
- name: Notify on failure
|
||||
if: failure()
|
||||
run: |
|
||||
echo "::error::ESLint check failed. Please run 'npm run lintfix' locally to fix issues."
|
||||
Reference in New Issue
Block a user