Commit graph

58 commits

Author SHA1 Message Date
Colin Darie
bae6f92f3a
ci: run on ubuntu 22.04 (latest is now 24.04) 2024-10-10 15:16:21 +02:00
Paul Chavard
142c789e76
use playwright driver 2024-09-16 12:31:10 +02:00
Eric Leroy-Terquem
48c092a74a
test(gallery): test gallery helper 2024-06-06 12:17:56 +02:00
Colin Darie
0c9006e953
ci: agressive timeout because system tests sometimes hang forever 2024-05-16 22:15:32 +02:00
Paul Chavard
b1e9b9539b Revert "fix(ci): attempt to fix ci runs"
This reverts commit 95a2f96040.
2024-04-24 16:30:41 +02:00
Paul Chavard
95a2f96040 fix(ci): attempt to fix ci runs 2024-04-24 12:33:37 +02:00
Colin Darie
2bf53abcf6
ci: upload coverage reports to codecov 2024-04-22 15:44:19 +02:00
Paul Chavard
c480d4082a chore(build): use bun instead of node 2024-04-17 12:25:42 +02:00
Paul Chavard
94ecd2166e chore(js): use bun instead of yarn 2024-04-03 14:52:44 +02:00
Colin Darie
3cf79fd170 ci: block fixup commit merge 2024-03-27 17:25:52 +01:00
Paul Chavard
55bc35659e chore(ci): use github runners 2024-03-18 11:34:56 +01:00
kleph
d7ead10c34 chores(ci): update apt repos before installing packages 2024-01-30 14:11:49 +01:00
Colin Darie
56f8b61866
feat(dossiers): lock submit en construction to avoid merge collisions with double submits 2024-01-24 10:58:40 +01:00
Colin Darie
18c901a450
ci: build ruby with yjit support 2024-01-11 13:46:04 +01:00
Colin Darie
84506a2ab1
chore: try ruby 3.3.0 2024-01-11 13:45:58 +01:00
Colin Darie
e60a5f5123 ci: fail when someones forget to commit it's schema.rb with a new migration 2023-11-20 11:22:27 +01:00
kleph
dd15479847 tune(ci): use self hosted runners only for system tests 2023-09-19 21:42:51 +02:00
kleph
09d7f0b91a
Merge branch 'demarches-simplifiees:main' into poc-self_hosted_runners 2023-09-13 14:15:38 +02:00
Colin Darie
6520ea027c
ci: install a font for watermarks 2023-09-12 13:04:32 +02:00
kleph
68328ce038 [ci][self] test workaround to install yarn at runtime 2023-07-26 16:06:04 +02:00
Paul Chavard
1e8a98329e chore(ci): add postgis to ci 2023-07-18 18:01:29 +02:00
Paul Chavard
d42e2fbd54 chore(github): remove unused actions 2023-05-16 17:46:46 +02:00
Colin Darie
283804ec74 ci: enable merge queue (merge group) 2023-02-22 14:28:44 +01:00
Colin Darie
cfeeb3f3ba ci: tests against postgresql 14 2022-10-20 17:09:03 +02:00
Paul Chavard
ddb230899c chore(actions): update github actions 2022-10-20 11:55:10 +02:00
Paul Chavard
2c3503d7d0 test(js): add vitest 2022-07-05 13:38:00 +02:00
Paul Chavard
ea18c2b9ba chore(build): use vitejs 2022-06-23 15:22:54 +02:00
Paul Chavard
4968a3f50d fix(ga): include patches hash in github actions 2022-05-10 16:02:05 +02:00
LeSim
97b90bb478 try codeql analysis 2022-05-06 11:50:32 +02:00
Martin
3e1bba7561 doc(ux): clarifie le process pour l'ux research 2022-04-22 05:13:23 +02:00
Paul Chavard
44c64669e9 Revert "Merge pull request #6787 from tchak/use-vite"
This reverts commit 5d572727b5, reversing
changes made to 43be4482ee.
2022-03-31 12:07:52 +02:00
Paul Chavard
187e84a010 feat(assets): use vitejs to build javascript 2022-03-29 16:27:08 +02:00
Paul Chavard
9bd0373aaa chore(node): add .node-version file 2022-02-24 08:48:27 +00:00
Pierre de La Morinerie
75e207122b ci: use previous test timings to split the tests 2021-11-09 08:32:31 +01:00
Pierre de La Morinerie
184bf38bb2 ci: split actions into several sub-actions 2021-11-09 08:32:31 +01:00
Pierre de La Morinerie
641f0df712 ci: avoid installing node modules again
By default `bin/rails assets:precompile` will run `yarn install` again.

The suggested workaround is to remove `bin/yarn` before running the
task.

See https://github.com/rails/webpacker/issues/405
2021-11-09 08:32:31 +01:00
Pierre de La Morinerie
d0a6fc4b8e ci: precompile (and cache) assets
This avoids the assets to be compiled lazily during the first spec,
which confuses test metrics.
2021-11-09 08:32:31 +01:00
Pierre de La Morinerie
2c96ade1b2 ci: split tests automatically 2021-11-09 08:32:31 +01:00
Pierre de La Morinerie
ba78e2bfb2 ci: use bin/rails instead of rake 2021-11-09 08:32:31 +01:00
Pierre de La Morinerie
21efece09e ci: use builtin cache for node modules
This is around 20s faster (10s when retrieved the cache and installing
node modules, and 10s when saving the cache).
2021-11-09 08:32:31 +01:00
Pierre de La Morinerie
9fd38cae5e specs: migrate from features to system specs
System specs have been available since Rails 5.1, and are better
integrated with the Rails framework.

- Rename `spec/features` to `spec/system`
- Rename `feature do` to `describe do`
- Configure Capybara for system specs

Steps mostly taken from https://medium.com/table-xi/a-quick-guide-to-rails-system-tests-in-rspec-b6e9e8a8b5f6
2021-10-26 12:24:46 +02:00
Pierre de La Morinerie
910c7303d8 ci: use --frozen-lockfile instead of --pure-lockfile
Unlike `--pure-lockfile`, `--frozen-lockfile` will fail if the lockfile
needs to be updated.
2021-09-30 17:05:26 +02:00
Pierre de La Morinerie
ed4e065bc1 ci: update the 'rebase' github action
This fixes a bug where rebasing wouldn't trigger branch checks again.
2021-06-22 08:33:15 +02:00
Pierre de La Morinerie
c96a2550d8 ci: check for zeitwerk errors
If a zeitwerk-incompatible class is introduced, it won't break
any test before reaching production.
2021-04-15 13:17:46 +02:00
Pierre de La Morinerie
1a35ba1906 ci: use the tag (2021-09-12) for Sentry releases
Previously the commit sha1 was used, which was harder to read.
2021-03-25 14:47:46 +01:00
Pierre de La Morinerie
3304cb3d43 ci: split controller tests into 3 groups
Ideally we'd like:

- One group with `spec/controllers/api/**/*_spec.rb` files
- One group with everything else

But due to the way globbing works (and doesn't allow to say "Files NOT
starting with `api`"), this looks like a sensible and future-proof
configuration.
2021-02-24 16:27:55 +01:00
Paul Chavard
a03d812d19 Add github actions CI 2021-02-23 10:35:30 +01:00
Pierre de La Morinerie
485c496b76 ci: update Github Action used to publish Sentry versions
Attempts to fix the Sentry action failing after a deploy.
2021-02-11 16:07:17 +00:00
clemkeirua
5fd41bbfd9 disable dependabot 2020-09-29 16:27:40 +02:00
Keirua
f44ebf4cbc Create dependabot.yml 2020-09-24 15:02:15 +00:00