mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-05-26 11:31:43 +00:00
chore: linting in separate ci step (#814)
* chore: lint ModMan UI in CI * chore: do not lint in build step anymore * chore: also do linting on main
This commit is contained in:
@@ -68,7 +68,6 @@ jobs:
|
|||||||
working-directory: ${{ github.workspace }}
|
working-directory: ${{ github.workspace }}
|
||||||
run: |
|
run: |
|
||||||
npm install
|
npm install
|
||||||
npm run lint
|
|
||||||
npm run build
|
npm run build
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
@@ -127,7 +126,6 @@ jobs:
|
|||||||
working-directory: ${{ github.workspace }}
|
working-directory: ${{ github.workspace }}
|
||||||
run: |
|
run: |
|
||||||
npm install
|
npm install
|
||||||
npm run lint
|
|
||||||
npm run build
|
npm run build
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
|
|||||||
@@ -1,11 +1,14 @@
|
|||||||
name: check-formatting
|
name: linting
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check-formatting:
|
check-clang-format-formatting:
|
||||||
name: Check formatting
|
name: Check clang-format formatting
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: ubuntu:24.04
|
container: ubuntu:24.04
|
||||||
defaults:
|
defaults:
|
||||||
@@ -19,8 +22,6 @@ jobs:
|
|||||||
|
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
with:
|
|
||||||
submodules: recursive
|
|
||||||
|
|
||||||
- name: Configure clang
|
- name: Configure clang
|
||||||
uses: ./.github/actions/configure-clang
|
uses: ./.github/actions/configure-clang
|
||||||
@@ -30,3 +31,25 @@ jobs:
|
|||||||
- name: Test formatting for all files
|
- name: Test formatting for all files
|
||||||
working-directory: ${{ github.workspace }}
|
working-directory: ${{ github.workspace }}
|
||||||
run: ./scripts/check-format.sh
|
run: ./scripts/check-format.sh
|
||||||
|
|
||||||
|
modman-linting:
|
||||||
|
name: Lint ModMan UI
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container: ubuntu:24.04
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
shell: bash
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
|
- name: Install node
|
||||||
|
uses: actions/setup-node@v6.4.0
|
||||||
|
with:
|
||||||
|
node-version: 24
|
||||||
|
|
||||||
|
- name: Lint UI
|
||||||
|
working-directory: ${{ github.workspace }}
|
||||||
|
run: |
|
||||||
|
npm install
|
||||||
|
npm run lint
|
||||||
Reference in New Issue
Block a user