diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 35d374cb..3454d8dd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,12 +40,21 @@ jobs: - name: Install web dependencies run: cd apps/web && npm ci - - name: Go vet + - name: Install golangci-lint + uses: golangci/golangci-lint-action@v9 + with: + version: v2.13.2 + install-only: true + + - name: Go lint and vet run: make lint-go - - name: Web ESLint + - name: Web lint run: make lint-web + - name: Web typecheck + run: cd apps/web && npm run typecheck + - name: SDK typecheck run: make lint-sdk @@ -66,14 +75,22 @@ jobs: with: node-version: ${{ env.NODE_VERSION }} cache: npm - cache-dependency-path: packages/sdk/typescript/package-lock.json + cache-dependency-path: | + apps/web/package-lock.json + packages/sdk/typescript/package-lock.json + + - name: Install web dependencies + run: cd apps/web && npm ci - name: Start NATS run: docker compose up -d --wait nats - - name: Run tests + - name: Run Go and SDK tests run: make test + - name: Run web tests + run: cd apps/web && npm test + build: name: Build runs-on: ubuntu-latest @@ -98,8 +115,5 @@ jobs: - name: Install web dependencies run: cd apps/web && npm ci - - name: Build SDK - run: make build-sdk - - name: Build all run: make build