Commit Graph

19 Commits

Author SHA1 Message Date
Pascal Jufer
5b256f64c6 Use pnpm 8.1.0, define version via packageManager field, clean-up other version definitions (#17993)
* Use `packageManager` field to define pnpm version in one place

* Update to pnpm 8.1.0 (see also #17990)

* Enforce pnpm >= 8 via `engines`

* Clean-up `engines` & remove `volta`

* Add dedup workaround, consolidate test env prepare steps

* No checkout, no action :-)

* Bump minimal pnpm version to 8.1.0

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>

---------

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2023-04-04 15:20:25 -04:00
Rijk van Zanten
953c2f95d5 Upgrade pnpm to 8 (#17979) 2023-03-28 13:43:25 -04:00
Wryn (yage) Wagner
e1a1190975 Dockerfile Improvements (#17965)
* combined layers, optimized layer order

* Revert data volume scoping

---------

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2023-03-28 11:07:26 -04:00
Rijk van Zanten
13a720bb63 Make final docker image lighter (#17933)
* Make final docker image lighter

* Revert max-old-space-size change
2023-03-24 19:38:43 -04:00
rijkvanzanten
9f9abfa0a0 Use two layers for corepack & fetch 2023-03-24 15:08:58 -04:00
Rijk van Zanten
495b57f00b Fix npm usage in Docker image (#17923)
* Hacky nonesense

* Update Dockerfile

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>

* Copy bin file for `directus`

To be able to use `npx directus ...`

* Add chown for node on files

* Simplify folder / ownership commands

* Enable pnpm

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-03-24 11:33:07 -04:00
Rijk van Zanten
27706f7067 Fix volume names (#17921) 2023-03-24 09:42:12 -04:00
Rijk van Zanten
0d8b3a52c7 Simplify / improve release flow (#17858)
* Remove git-hook

This is already running in GH Actions as well

* Start new Dockerfile

* Remove unused files

* Close, but not quite

* Line break between environment specific commands / operational ones

* Cleanup dockerfile

* Update github release automation

* Update Dockerfile

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>

* Update Dockerfile

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>

* Improve based on review comments

* Update Dockerfile

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>

* Update Dockerfile

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>

---------

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2023-03-23 13:20:14 -04:00
Nicola Krumschmidt
03cf03b1bf Clean up API exports (#9418)
* Move API entrypoint to typescipt

* Remove explicit cli exort from API

The "./*" export should export all subpaths, so explicitly exporting the cli shouldn't be necessary.

* Remove dedicated start script from API

This script isn't even included in the final npm package and it's only used by the test Dockerfile.
2021-11-03 17:34:48 -04:00
Jay Cammarano
90bb9d4879 End-to-end tests for filters (#9078)
* reorganized for sanity

* filter tests for _eq/_neq

* logical operators

* update one one to many

* /:collection PATCH one to many

* base tables.id => uuids to minimize collisions

* tests pass

* added python to dockerfile

* tests passing

* ci?

* ci...

* hanging async
2021-11-01 14:21:44 -04:00
rijkvanzanten
728a9397e7 Improve e2e tests, fail when directus fails 2021-09-28 15:42:50 -04:00
Nicola Krumschmidt
3e7d00982f Replace require.main check with start script (#8005) 2021-09-13 16:31:21 -04:00
Nicola Krumschmidt
727947b72d Fix CLI not executing any command (#7992)
Fixes a regression introduced in #7675
2021-09-13 12:32:15 -04:00
rijkvanzanten
10d0b5623c Limit to node 16 2021-07-14 16:29:16 -04:00
rijkvanzanten
56e58c913c Should work now 2021-07-14 16:09:46 -04:00
rijkvanzanten
c54b955359 Attempt to fix e2e test 2021-07-14 15:51:27 -04:00
Nicola Krumschmidt
965bcde4ee Enforce latest node and npm version in dev (#6414)
* Enforce latest node and npm version in dev

* Update CI workflows to Node 16
2021-06-22 11:22:37 -04:00
Jakob
f5250143c7 Setup CI for e2e tests (#5035) 2021-04-13 17:03:45 -04:00
Rijk van Zanten
c7476cedbd End-to-end test setup (#4833)
* First start on test setup

* Setup e2e runner framework

* Use prepublishOnly for docs build

* Setup docker-based e2e test runner

* Spacing

* Setup db-getter + config

* Build image in Dockerode, pull images if needed

* Fix waiting for DB, run test for each running instance

* Get tests running per vendor

* Temp remove oracle

* Close awaiting connections in between
2021-04-05 15:11:02 -04:00