|
@@ -51,9 +51,6 @@ jobs:
|
|
|
- name: Install Node packages
|
|
- name: Install Node packages
|
|
|
run: npm ci --ignore-scripts
|
|
run: npm ci --ignore-scripts
|
|
|
|
|
|
|
|
- - name: Check formatting
|
|
|
|
|
- run: npx prettier --check .
|
|
|
|
|
-
|
|
|
|
|
- name: Apply formatting
|
|
- name: Apply formatting
|
|
|
if: github.event_name == 'pull_request'
|
|
if: github.event_name == 'pull_request'
|
|
|
run: npm run format
|
|
run: npm run format
|
|
@@ -66,6 +63,9 @@ jobs:
|
|
|
message: Apply Prettier formatting
|
|
message: Apply Prettier formatting
|
|
|
add: "."
|
|
add: "."
|
|
|
|
|
|
|
|
|
|
+ - name: Check formatting
|
|
|
|
|
+ run: npx prettier --check .
|
|
|
|
|
+
|
|
|
eslint:
|
|
eslint:
|
|
|
name: ESLint
|
|
name: ESLint
|
|
|
runs-on: ubuntu-latest
|
|
runs-on: ubuntu-latest
|