Skip to content

ci: replace broken workflows with a working build/test/lint pipeline#474

Merged
mrholek merged 2 commits into
mainfrom
chore/ci-workflows
Jun 13, 2026
Merged

ci: replace broken workflows with a working build/test/lint pipeline#474
mrholek merged 2 commits into
mainfrom
chore/ci-workflows

Conversation

@mrholek

@mrholek mrholek commented Jun 13, 2026

Copy link
Copy Markdown
Member

Problem

CI was effectively dead:

  • project-check.yml and daily-project-check.yml trigger on the master branch, but the default branch is main — so they never ran on pushes/PRs.
  • They used Node 12, actions/checkout@v1, and called npm run jest:test, a script that no longer exists.
  • The daily job failed every weekday (red runs in the Actions tab).

Change

Replace both with a single ci.yml that runs on push/PR to main:

  • testyarn install --frozen-lockfile, yarn lib:build, yarn lib:test on a Node 20.x / 22.x matrix. Verified locally that these run green from the repo root in the same configuration CI uses (the coreui-react-chartjs / coreui-icons-react submodules are separate repos with their own release cycle and CI, so they're out of scope here).
  • lintyarn lint, marked continue-on-error: true so it surfaces findings without blocking merges. A handful of react-hooks v7 errors and one deferred public Item type remain (down from ~400 lint errors); once they clear, drop continue-on-error to make lint a required check.

stale.yml is left untouched.

Follow-ups

  • Make lint blocking after the remaining react-hooks v7 / Item items are resolved.
  • Optionally add a React 18 / 19 test matrix dimension (needs a dependency override and a green-run check first).

mrholek added 2 commits June 13, 2026 18:59
The old project-check and daily-project-check workflows triggered on the
non-existent `master` branch, ran on Node 12 with actions/checkout@v1, and
called a `jest:test` script that no longer exists — so CI never ran on PRs
and the daily job failed every day.

Add a single CI workflow that runs on push/PR to main:
- test job: build and test @coreui/react on Node 20.x and 22.x
- lint job: yarn lint, non-blocking for now (a few react-hooks v7 findings
  and one deferred public type remain) until the remaining errors clear
setup-node's yarn cache and yarn install --frozen-lockfile both require a
committed yarn.lock, which this repo gitignores. Drop the cache option and
the frozen flag so install resolves from package.json.
@mrholek mrholek merged commit f3cfa22 into main Jun 13, 2026
2 of 3 checks passed
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.

1 participant