Skip to content

test: added a test for GetChatSuggestion in the controller get_chat_s… #15

test: added a test for GetChatSuggestion in the controller get_chat_s…

test: added a test for GetChatSuggestion in the controller get_chat_s… #15

Workflow file for this run

name: Linter CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint-frontend:
name: Lint Frontend
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./web
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "20"
cache: "npm"
cache-dependency-path: web/package-lock.json
- name: Install dependencies
run: npm ci
- name: Run eslint
run: npm run lint
lint-backend:
name: Lint Backend
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: "1.24"
- name: Install golangci-lint
run: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/HEAD/install.sh | sh -s -- -b $(go env GOPATH)/bin v2.0.2
- name: Run golangci-lint
run: golangci-lint run ./...