Commit Graph

26 Commits

Author SHA1 Message Date
c193663a71 chore: use Nx affected tasks in CI (#5110)
Closes #5097

- Uses "nx affected" to detect what projects need to be checked in the
current PR (for now, `ci-front` and `ci-server` workflows only).
- Caches results of certain tasks (`lint`, `typecheck`, `test`,
`storybook:build`) when a PR pipeline runs. The next runs of the same
PR's pipeline will then be able to reuse the PR's task cache to execute
tasks faster.
- Caches Yarn's cache folder to install dependencies faster in CI jobs.
- Rewrites the node modules cache/install steps as a custom, reusable
Github action.
- Distributes `ci-front` jobs with a "matrix" strategy.
- Sets common tasks config at the root `nx.json`. For instance, to
activate the `typecheck` task in a project, add `typecheck: {}` to its
`project.json` and it'll use the default config set in `nx.json` for the
`typecheck` task. Options can be overridden in each individual
`project.json` if needed.
- Adds "scope" tags to some projects: `scope:frontend`, `scope:backend`,
`scope:shared`. An eslint rule ensures that `scope:frontend` only
depends on `scope:frontent` or `scope:shared` projects, same for
`scope:backend`. These tags are used by `nx affected` to filter projects
by scope and generates different task cache keys according to the
requested scope.
- Enables checks for twenty-emails in the `ci-server` workflow.
2024-04-30 16:28:25 +02:00
d3170fc1ea fix: fix root start script (#5032)
Fixes #5022

See https://nx.dev/recipes/running-tasks/root-level-scripts#setup
2024-04-19 18:28:02 +02:00
eab65f34f9 feat(ci): use concurrency.group to cancel previous jobs (#4795)
As recommended on the repo of the action we were using
https://github.com/styfle/cancel-workflow-action, we should use
`concurrency.group` rather than a dedicated action.

Here is a PR to use it on all our workflows
2024-04-04 09:30:55 +02:00
ccd02fe58c feat: init docker compose test (#4730)
Job testing if docker compose is working. It triggers on pull_requests.
2024-04-03 18:08:21 +02:00
c53abf2f5a Fix chromatic tests + re-enable (#3414)
* Fix chromatic tests + re-enable

* Try to run command manually

* Fix

* Fix

* Fix

* Fix

* Fix

---------

Co-authored-by: Thomas Trompette <thomast@twenty.com>
Co-authored-by: Charles Bochet <charles@twenty.com>
2024-01-12 18:32:00 +01:00
3d29481fbd Disable chromatic CI 2023-12-15 16:09:49 +01:00
daa6d2ca01 Chore: Cancel previous runs (#2227)
Cancel previous runs
2023-11-06 23:31:26 +01:00
fa7282ab4c Fix chromatic CI trigger on run-chromatic label 2023-09-16 22:29:34 -07:00
9be674e440 Fix CI 2023-09-16 19:28:04 -07:00
82ac84ee7c Update CI scripts 2023-09-16 16:33:23 -07:00
86fee770e1 Update chromatic CI trigger 2023-07-31 18:23:39 -07:00
ba76cace3f Update chromatic CI trigger 2023-07-31 18:20:45 -07:00
b028d9fd2a Add deploy buttons and clean environment variables (#974)
* add render.yaml

* Clean environment variables



---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2023-07-31 14:36:04 -07:00
eafa30a9cf Fix margin on DeleteModal overlay (#998)
* Fix margin on DeleteModal overlay

* Update chromatic ci triggers

* Update chromatic ci triggers
2023-07-30 13:17:33 -07:00
28765fe7c3 Inbox task 2 (#991)
* Add ability to properly cast a string, number, null to an integer

* Adding Tab UI component

* Only trigger chromatic when asked
2023-07-29 21:24:33 -07:00
a975935f49 Connect profile picture upload to backend (#533)
* Connect profile picture upload to backend

* Fix tests

* Revert onboarding state changes
2023-07-07 17:50:02 -07:00
f6cf416bb2 Fix storybook build 2023-07-06 18:53:26 -07:00
463994df1f Fix CI 2023-07-05 09:24:46 +02:00
41edcd81d8 Fix CI on main 2023-07-05 00:04:05 +02:00
7893d5dba5 fix: remove not working part (#484) 2023-06-30 11:55:35 +03:00
8e319900d0 fix: github actions (#483)
fix: test unused
2023-06-30 11:35:59 +03:00
edee69bc07 Fix double Run CI (#459)
Co-authored-by: Charles Bochet <charles@twenty.com>
2023-06-27 17:55:07 +02:00
7f43b3d04f Enable workflow to run on fork pull requests (#435) 2023-06-26 10:21:51 -07:00
31f3950439 Add a custom rule to prevent colors from being hardcoded outside of theme (#288)
* Add a custom rule to prevent colors from being hardcoded in ESLint

* Refactor colors

* Create packages folder and fix colors

* Remove external dependency for css alphabetical order linting

* Fix install with yarn

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2023-06-14 16:56:29 +02:00
7e73f013d1 Enable Turbosnap for Chromatic (#286) 2023-06-13 18:45:18 +02:00
51790d8484 Add chromatic testing (#170) 2023-06-01 11:20:05 +02:00