Skip to content

ci: add pre-test checks with format, lint, and compile steps#11

Open
rootandroo wants to merge 2 commits into
mainfrom
ci-pretest-checks
Open

ci: add pre-test checks with format, lint, and compile steps#11
rootandroo wants to merge 2 commits into
mainfrom
ci-pretest-checks

Conversation

@rootandroo
Copy link
Copy Markdown

@rootandroo rootandroo commented May 10, 2026

Add pretest checks for types, style, formatting, and compilation.

Closes #81

@rootandroo rootandroo requested a review from a team as a code owner May 10, 2026 18:12
@rootandroo rootandroo force-pushed the ci-pretest-checks branch from a71455f to 2bc637e Compare May 10, 2026 18:17
arklian
arklian previously approved these changes May 14, 2026
Copy link
Copy Markdown

arklian commented May 14, 2026

You'll need to make PRs to format the backend and the frontend so that the checks pass the first time.

Comment thread .github/workflows/ci.yml
# - pull requests targeting main
# Does NOT fire on tag-only pushes or unrelated events.
on:
push:
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually what's the benefit of having CI run on all pushes?

- Rename jobs: backend-ci → backend-pretest, frontend-ci → frontend-pretest
- Backend: add Spotless format check, Checkstyle, and compile steps
- Frontend: switch to pnpm, add typecheck, prettier, lint, and build steps
- Trigger on push to any branch and PRs targeting main
- Document trigger rules in workflow file
@rootandroo rootandroo force-pushed the ci-pretest-checks branch from 2bc637e to 3143681 Compare May 15, 2026 14:58
@sonarqubecloud
Copy link
Copy Markdown

Comment thread .github/workflows/ci.yml
Comment on lines +47 to +50
- name: Setup pnpm
uses: pnpm/action-setup@v6
with:
node-version: "24"
version: 10.24.0
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing Node.js setup step. The original workflow explicitly installed Node.js v24 using actions/setup-node@v6, but the new workflow only sets up pnpm. The pnpm/action-setup action does not install Node.js - it only installs pnpm and requires Node.js to already be present.

While GitHub's ubuntu-latest runner includes Node.js by default, the version is not guaranteed to match the previously specified v24, which could cause compatibility issues or unexpected build failures.

Fix: Add Node.js setup before pnpm setup:

- name: Setup Node.js
  uses: actions/setup-node@v6
  with:
    node-version: "24"

- name: Setup pnpm
  uses: pnpm/action-setup@v6
  with:
    version: 10.24.0
Suggested change
- name: Setup pnpm
uses: pnpm/action-setup@v6
with:
node-version: "24"
version: 10.24.0
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: "24"
- name: Setup pnpm
uses: pnpm/action-setup@v6
with:
version: 10.24.0

Spotted by Graphite

Fix in Graphite


Is this helpful? React 👍 or 👎 to let us know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants