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
33
.github/workflows/futon-deploy.yaml
vendored
33
.github/workflows/futon-deploy.yaml
vendored
@ -6,26 +6,21 @@ on:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
run-linters:
|
||||
name: Run linters
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Check out Git repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v1
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v2.4.0
|
||||
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