-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (41 loc) · 1.08 KB
/
Copy pathlint.yml
File metadata and controls
46 lines (41 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Lint
on:
pull_request:
push:
permissions:
contents: read
jobs:
go:
name: Go
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7.0.1
- uses: actions/setup-go@v7.0.0
with:
go-version-file: go.mod
- name: Check formatting
run: test -z "$(gofmt -l $(git ls-files '*.go'))"
- name: Vet
run: go vet ./...
dockerfile:
name: Dockerfile
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7.0.1
- uses: hadolint/hadolint-action@v3.5.0
with:
dockerfile: Dockerfile
web:
name: HTML and CSS
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7.0.1
- uses: actions/setup-node@v7.0.0
with:
node-version: 24
- name: Lint HTML
run: npx --yes htmlhint@1.7.0 --config .htmlhintrc 'internal/httpapi/web/*.html'
- name: Install CSS linter
run: npm install --no-save stylelint@16.24.0 stylelint-config-standard@39.0.0
- name: Lint CSS
run: npx stylelint internal/httpapi/web/assets/app.css