Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
396f1cb481 |
@@ -3,7 +3,7 @@ run-name: Go static analysis check on ${{ gitea.repository }} ${{ gitea.ref_name
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- '*'
|
||||
- "*"
|
||||
|
||||
jobs:
|
||||
lint-check:
|
||||
@@ -12,12 +12,12 @@ jobs:
|
||||
- name: Check Out Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: 'true'
|
||||
submodules: "true"
|
||||
|
||||
- name: Initialize Runner
|
||||
uses: actions/setup-go@v7
|
||||
with:
|
||||
go-version-file: 'go.mod'
|
||||
go-version-file: "go.mod"
|
||||
|
||||
- name: Initialize Go
|
||||
run: make build-web && go get .
|
||||
@@ -29,5 +29,5 @@ jobs:
|
||||
|
||||
- name: Verify Static Analysis
|
||||
if: >
|
||||
steps.static_govet.outcome != 'success'
|
||||
steps.static_govet.outcome != "success"
|
||||
run: exit 1
|
||||
@@ -3,7 +3,7 @@ run-name: Code style check on ${{ gitea.repository }} ${{ gitea.ref_name }} ${{
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- '*'
|
||||
- "*"
|
||||
|
||||
jobs:
|
||||
lint-check:
|
||||
@@ -34,12 +34,12 @@ jobs:
|
||||
|
||||
- name: Run HTMLValidate
|
||||
id: html_lint
|
||||
run: npx html-validate --config dev_config/.htmlvalidate.json 'web/html/**/*'
|
||||
run: npx html-validate --config dev_config/.htmlvalidate.json "web/html/**/*"
|
||||
|
||||
- name: Run Stylelint
|
||||
id: style_lint
|
||||
if: always()
|
||||
run: npx stylelint --config dev_config/.stylelintrc.json --formatter verbose --fix 'web/css/**/*.css'
|
||||
run: npx stylelint --config dev_config/.stylelintrc.json --formatter verbose --fix "web/css/**/*.css"
|
||||
|
||||
- name: Run ESLint
|
||||
id: js_lint
|
||||
@@ -50,7 +50,7 @@ jobs:
|
||||
|
||||
- name: Verify Linters
|
||||
if: >
|
||||
steps.html_lint.outcome != 'success' ||
|
||||
steps.style_lint.outcome != 'success' ||
|
||||
steps.js_lint.outcome != 'success'
|
||||
steps.html_lint.outcome != "success" ||
|
||||
steps.style_lint.outcome != "success" ||
|
||||
steps.js_lint.outcome != "success"
|
||||
run: exit 1
|
||||
Reference in New Issue
Block a user