Merge pull request 'acid testing' (#37) from futonbeta into main
Reviewed-on: http://gitea.genosjr.moe/l4kr/dashboard-ui/pulls/37
This commit is contained in:
commit
23bd3804dc
31
.github/workflows/futon-deploy.yaml
vendored
31
.github/workflows/futon-deploy.yaml
vendored
@ -6,26 +6,21 @@ on:
|
|||||||
branches: [main]
|
branches: [main]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
run-linters:
|
lint:
|
||||||
name: Run linters
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Check out Git repository
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v2.4.0
|
||||||
with:
|
with:
|
||||||
node-version: 12
|
node-version: '16.x'
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm install
|
||||||
|
- name: Lint CSS files
|
||||||
|
run: npx stylelint '**/*.css'
|
||||||
|
- name: Lint JavaScript files
|
||||||
|
run: npx eslint '**/*.js'
|
||||||
|
- name: Lint HTML files
|
||||||
|
run: npx htmlhint '**/*.html'
|
||||||
|
|
||||||
# ESLint and Prettier must be in `package.json`
|
|
||||||
- name: Install Node.js dependencies
|
|
||||||
run: npm ci
|
|
||||||
|
|
||||||
- name: Run linters
|
|
||||||
uses: wearerequired/lint-action@v2
|
|
||||||
with:
|
|
||||||
eslint: true
|
|
||||||
prettier: true
|
|
||||||
stylelint: true
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user