Skip to content

Asset doc and perf #3281

Asset doc and perf

Asset doc and perf #3281

Workflow file for this run

name: Lint
on:
push:
branches: [main]
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v5
with:
go-version: 1.21
cache: true
- name: run golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.54
args: --timeout=3m
- name: install gofumpt
run: go install mvdan.cc/gofumpt@latest
- name: run gofumpt
run: |
ERRORS=$(gofumpt -l . | wc -l)
if [[ "$ERRORS" != "0" ]]; then
echo "following files are not gofumpted:"
gofumpt -l .
exit 1
fi
lint-web-frontend:
defaults:
run:
working-directory: ./web-frontend
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: "npm"
cache-dependency-path: ./web-frontend/package-lock.json
- name: Install dependencies
run: npm ci
- name: Run code formating and linting
run: npm run fmt:check
lint-wails-frontend:
defaults:
run:
working-directory: ./wails-frontend
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: "npm"
cache-dependency-path: ./wails-frontend/package-lock.json
- name: Install dependencies
run: npm ci
- name: Run code formating and linting
run: npm run fmt:check