Commit graph

207 commits

Author SHA1 Message Date
Anthony Alaribe
6fe653aa4f
Update claude.yml 2025-12-19 17:12:11 +01:00
Anthony Alaribe
e7aa41b125
Update claude-code-review.yml 2025-12-19 17:10:23 +01:00
Anthony Alaribe
579840850f Use npx tailwindcss instead of @tailwindcss/cli for v4 compatibility
The tailwindcss package (v4.1.13) in devDependencies is the correct CLI
for Tailwind v4. Using @tailwindcss/cli was unnecessarily specific and
may have caused issues in the Docker build environment.

This ensures the CSS with all custom utilities (surface-raised, etc.)
builds correctly in production.
2025-12-17 14:17:04 +01:00
Anthony Alaribe
07187039d6 Fix CSS build in deployment by using correct Tailwind v4 CLI
The project uses Tailwind CSS v4 syntax (@import, @source, @plugin
directives) but the build commands were using the old v3 CLI which
doesn't process v4 syntax correctly, causing CSS changes to not appear
in deployed builds.

Updated Dockerfile and CI workflows to use @tailwindcss/cli instead of
the legacy tailwindcss command, and removed the obsolete -c config flag
since v4 uses @config directive in the CSS file.
2025-12-17 13:17:40 +01:00
Anthony Alaribe
ef37ea9efc Optimize CI caching strategy to reduce disk usage
Use separate caches per test suite and cache only essential build
artifacts instead of entire dist-newstyle directory. This reduces
disk usage while maintaining fast compilation through effective caching.
2025-12-17 12:10:21 +01:00
Anthony Alaribe
5f990ba6eb Fix CI disk space exhaustion by cleaning up unnecessary files and build artifacts 2025-12-17 12:09:06 +01:00
Anthony Alaribe
e212df0b96
Tests in prs. And fix hlint warnings and failing UI tests (#230)
* Enable tests and hlint in pull request workflow

- Add hlint job to run on all PRs

- Make test jobs run even if build fails (using if: always())

- Fix shadowing binding in Table.hs colAttrs function

- Fix LLM.hs type error by using langchain-hs standard pattern

- Fix TypeScript error in log-worker-functions.ts with optional chaining

This ensures CI checks run independently and provide feedback even when some jobs fail.

* Convert PR workflow from stack to cabal

- Replace stack with cabal commands throughout

- Update caching to use dist-newstyle and ~/.cabal/store

- Use awalsh128/cache-apt-pkgs-action for system deps

- Set OpenSSL env vars properly for GitHub Actions

- Add fail-fast: false to test matrix

- Add ::group:: annotations for better log organization

* Revert LLM.hs changes - they were stack-related, not actual bugs

* minor linting error

* run hlint refactor in prs

* Apply hlint fixes across codebase

Fixed 239 hlint warnings: use toText, simplify encoding chains, replace fromMaybe with maybe, use ordNub, convert to guards, use unless, eta reduction, list comprehensions, newtype conversions, and remove unused imports. Updated .hlint.yaml to allow flexible imports for Data.List and Data.Aeson.

* Auto-format code with fourmolu

* Fix UI test failures in GitHub Actions

Update Node.js version from 18 to 20 to satisfy happy-dom requirement

Add CSS.escape mock for Monaco Editor theme initialization

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-12-17 00:34:01 +01:00
Anthony Alaribe
9e5462c016
Add Claude Code GitHub Workflow (#226)
* "Claude PR Assistant workflow"

* "Claude Code Review workflow"

* Update .github/workflows/claude-code-review.yml
2025-12-15 23:38:00 +01:00
Anthony Alaribe
3f36aeec93 Cache fourmolu binary to speed up workflow 2025-11-17 21:38:59 +01:00
Anthony Alaribe
11eac7866f Use make fmt to format code instead of fourmolu action 2025-11-17 21:35:43 +01:00
Anthony Alaribe
a6a641de63 Allow fourmolu workflow to continue on error 2025-11-17 21:30:13 +01:00
Anthony Alaribe
1a801fbd45 Revert to mode: 'inplace' for fourmolu workflow 2025-11-17 21:29:04 +01:00
Anthony Alaribe
f3afc40c44 Use -i flag instead of --mode inplace for fourmolu 2025-11-17 21:23:19 +01:00
Anthony Alaribe
87c3025cad Fix fourmolu workflow to format files in place
The workflow was using an unsupported 'mode' parameter, causing fourmolu
to run in check mode instead of formatting files. Changed to use extra-args
to pass --mode inplace directly to fourmolu.
2025-11-17 21:21:10 +01:00
Anthony Alaribe
a1d768282c auto push formated code 2025-11-17 21:18:05 +01:00
Anthony Alaribe
aa6fe0dd20 Complete GHC 9.12.2 upgrade across build tools
- Update Dockerfile base image to haskell:9.12.2
- Update Makefile GHC_VERSION and compiler flags
- Update GitHub Actions workflows to use GHC 9.12.2
- Replace manual Default instances with deriving anyclass
2025-11-17 21:12:54 +01:00
Anthony Alaribe
269d8f0f3b introduce the ui-tests into ci 2025-10-26 23:50:25 +01:00
Anthony Alaribe
9b20932684 fix doctest in github actions 2025-10-18 12:37:36 +02:00
Anthony Alaribe
2adde3213d fix doctest in github actions 2025-10-18 10:27:22 +02:00
Anthony Alaribe
bdb80e7e3c fix github test matrix 2025-10-18 01:19:53 +02:00
Anthony Alaribe
24d0b82031 attempt to cache docker builds more 2025-09-18 19:14:19 +02:00
Anthony Alaribe
31e5f55e3f deploy irrespective of the tests status 2025-09-14 22:53:50 +02:00
Anthony Alaribe
4b4ed0252a rename project to monoscope 2025-09-14 19:55:26 +02:00
Anthony Alaribe
76b2365cc9 build everything in multistage docker images. 2025-09-14 19:12:41 +02:00
Anthony Alaribe
7a5df44b01 attempt at fixing compiling webcomponents again 2025-09-13 23:08:57 +02:00
Anthony Alaribe
ffe0a50323 setup database for integration tests in CI 2025-09-05 04:17:40 +02:00
Anthony Alaribe
7abc91f913 another attempt at making the doctests run in github ci 2025-09-05 02:12:43 +02:00
Anthony Alaribe
d77de0e8b7 fix cli config including colors in test-options 2025-09-05 01:14:53 +02:00
Anthony Alaribe
95d96e1be3 not verbose test builds 2025-09-05 01:06:58 +02:00
Anthony Alaribe
672c28a08a fix issue so the tests run correctly 2025-09-04 23:59:20 +02:00
Anthony Alaribe
6c04349a7a update fourmolu version in github actions 2025-09-04 22:26:16 +02:00
Anthony Alaribe
0253610970 fix failing tests in github actions 2025-09-04 22:22:45 +02:00
Anthony Alaribe
9a285db9bc remove the rust interop configuration and lines from github actions 2025-09-04 02:28:21 +02:00
Anthony Alaribe
8c94dedd36 speed up compilation by skiping rust installation if it already exists 2025-07-15 14:38:22 +02:00
Anthony Alaribe
9fe82bed3e cache apt get installs to speed up CI 2025-07-15 13:54:47 +02:00
Anthony Alaribe
3994127961 fix-ci: statically link libs. 2025-07-15 13:13:00 +02:00
Anthony Alaribe
bfb57e79fd fix-ci: statically link libs. 2025-07-15 12:56:25 +02:00
Anthony Alaribe
d8f731956e fix-ci: statically link libs. so it works in docker container 2025-07-15 12:13:01 +02:00
Anthony Alaribe
f56ba2076e fix-ci: statically link libs. so it works in docker container 2025-07-15 11:28:44 +02:00
Anthony Alaribe
14e9f57148 fix-ci: include static in package assets 2025-07-15 01:15:28 +02:00
Anthony Alaribe
090801ab72 fix-ci: include static in package assets 2025-07-15 00:31:59 +02:00
Anthony Alaribe
a5bee57af7 fix-ci: don't force bundling of libs with rust-interop 2025-07-14 22:13:36 +02:00
Anthony Alaribe
cbadbca67f cache build irrespective of failure 2025-07-14 21:38:32 +02:00
Anthony Alaribe
177ba6acb6 cache build irrespective of failure 2025-07-14 20:47:03 +02:00
Anthony Alaribe
cc7f984db8 cache build irrespective of failure 2025-07-14 20:24:21 +02:00
Anthony Alaribe
ef23a18af9 cache build irrespective of failure 2025-07-14 20:10:18 +02:00
Anthony Alaribe
23f9f7835d fix ci cp without -r 2025-07-14 10:01:50 +02:00
Anthony Alaribe
99c81a751d fix ci cp without -r 2025-07-14 00:43:57 +02:00
Anthony Alaribe
2bf30c9e22 fix ci cp without -r 2025-07-14 00:39:12 +02:00
Anthony Alaribe
de9f222f27 Compiling in CI is too slow, so this should make it faster and maybe even fix the compile error with rust interop 2025-07-14 00:08:23 +02:00