Skip to content

ci: fix golangci

ci: fix golangci #66

Workflow file for this run

name: Build
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.17
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "18"
- name: Generate
run: go generate -x
- name: Build
run: go build -v
- name: Test
run: go test -v ./...
golangci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: 1.17
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: latest
prettier:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "18"
- run: yarn install
working-directory: web
- run: yarn prettier --check 'src/**/*.{css,html,js,svelte}'
working-directory: web