From 45a01f4fd5d11f127938804474deb1eb7b84420b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Flor=C3=AAncio?= Date: Thu, 15 Jan 2026 19:19:00 +0000 Subject: [PATCH] ci: fix workflows --- .github/workflows/backend-tests.yml | 34 ++++++---------------------- .github/workflows/frontend-tests.yml | 13 ++++------- 2 files changed, 12 insertions(+), 35 deletions(-) diff --git a/.github/workflows/backend-tests.yml b/.github/workflows/backend-tests.yml index b7769be268..49d85337a7 100644 --- a/.github/workflows/backend-tests.yml +++ b/.github/workflows/backend-tests.yml @@ -19,9 +19,9 @@ jobs: uses: actions/checkout@v4 - name: Set up Go - uses: actions/setup-go@v5 + uses: actions/setup-go@v6 with: - go-version: '1.24' + go-version-file: apps/backend/go.mod cache-dependency-path: apps/backend/go.sum - name: Download dependencies @@ -30,13 +30,16 @@ jobs: - name: Verify dependencies run: go mod verify + - name: Build + run: go build -v ./cmd/kandev + - name: Run go vet run: go vet ./... - name: Run golangci-lint - uses: golangci/golangci-lint-action@v6 + uses: golangci/golangci-lint-action@v9 with: - version: v1.61.0 + version: v2.6 args: ./... working-directory: apps/backend @@ -69,26 +72,3 @@ jobs: apps/backend/coverage.out apps/backend/test-output.txt retention-days: 30 - - build: - name: Build Backend - runs-on: ubuntu-latest - defaults: - run: - working-directory: apps/backend - - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Set up Go - uses: actions/setup-go@v5 - with: - go-version: '1.24' - cache-dependency-path: apps/backend/go.sum - - - name: Download dependencies - run: go mod download - - - name: Build - run: go build -v ./cmd/kandev diff --git a/.github/workflows/frontend-tests.yml b/.github/workflows/frontend-tests.yml index 180a409eb9..130098203a 100644 --- a/.github/workflows/frontend-tests.yml +++ b/.github/workflows/frontend-tests.yml @@ -21,20 +21,17 @@ jobs: - name: Set up pnpm uses: pnpm/action-setup@v4 with: - version: '9' + version: "9" - name: Set up Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: - node-version: '20' - cache: 'pnpm' + node-version: "24" + cache: "pnpm" cache-dependency-path: apps/pnpm-lock.yaml - - name: Enable corepack - run: corepack enable - - name: Install dependencies - run: pnpm install + run: pnpm install --frozen-lockfile - name: Run lint run: pnpm --filter @kandev/web lint