Skip to content

fix: resolve golangci-lint errcheck violations and test failures #32

fix: resolve golangci-lint errcheck violations and test failures

fix: resolve golangci-lint errcheck violations and test failures #32

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.23'
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: cloud/ui/package-lock.json
- name: Build Frontend
run: |
cd cloud/ui
npm ci
npm run build
cd ../..
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.23'
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: cloud/ui/package-lock.json
- name: Build Frontend
run: |
cd cloud/ui
npm ci
npm run build
cd ../..
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest