mirror of
https://github.com/maxdorninger/MediaManager.git
synced 2026-04-18 19:54:09 +02:00
add web-lint.yml gh workflow
This commit is contained in:
17
.github/workflows/build-push-frontend.yml
vendored
17
.github/workflows/build-push-frontend.yml
vendored
@@ -12,7 +12,23 @@ on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
name: Lint Frontend
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
- name: Install dependencies
|
||||
run: npm install
|
||||
working-directory: ./web
|
||||
- name: Lint code
|
||||
run: npm run lint
|
||||
working-directory: ./web
|
||||
build-and-push:
|
||||
needs: lint
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
@@ -53,4 +69,3 @@ jobs:
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
build-args: |
|
||||
VERSION=${{ steps.meta.outputs.version }}
|
||||
|
||||
|
||||
2
.github/workflows/python-lint.yaml
vendored
2
.github/workflows/python-lint.yaml
vendored
@@ -1,6 +1,8 @@
|
||||
name: Ruff
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- 'media_manager/**'
|
||||
- 'alembic/**'
|
||||
|
||||
31
.github/workflows/web-lint.yml
vendored
Normal file
31
.github/workflows/web-lint.yml
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
name: Lint Frontend
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
paths:
|
||||
- 'web/**'
|
||||
- '.github/workflows/web-lint.yml'
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- 'web/**'
|
||||
- '.github/workflows/web-lint.yml'
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
name: Lint Frontend
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
- name: Install dependencies
|
||||
run: npm install
|
||||
working-directory: ./web
|
||||
- name: Lint code
|
||||
run: npm run lint
|
||||
working-directory: ./web
|
||||
|
||||
Reference in New Issue
Block a user