Skip to content

fix: add path to back end #14

fix: add path to back end

fix: add path to back end #14

Workflow file for this run

name: golangci-lint
on:
push:
branches:
- master
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v4
with:
go-version: "1.20"
cache: false
- uses: actions/checkout@v3
- name: make index.html in ui directory to avoid lint error
run: mkdir "./back-end/ui" && touch "./back-end/ui/index.html"
- name: golangci-lint
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.54.0
golangci-lint --version
golangci-lint run --timeout 5m -v
working-directory: ./back-end