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
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
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
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
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
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
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