👷 ci(workflow): add lint job to build workflow
- introduce lint job in build.yml for code quality checks - ensure lint job runs before docker job - setup Node.js and install dependencies for ESLint
This commit is contained in:
parent
e39cca93c2
commit
0e5303da62
1 changed files with 15 additions and 0 deletions
|
|
@ -6,7 +6,22 @@ on:
|
|||
- main
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: self-hosted
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
- name: Run ESLint
|
||||
run: npm run lint
|
||||
|
||||
docker:
|
||||
needs: lint
|
||||
runs-on: self-hosted
|
||||
steps:
|
||||
- name: Set up Docker Buildx
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue