Commit Graph

65 Commits

Author SHA1 Message Date
rijkvanzanten
4d63fba50a Increase node mem allocation in release flow
Should fix the build issue where rollup runs out of memory when building the app
2022-06-03 10:33:52 -04:00
Jay Cammarano
4e5fbf1b0c Use pull_request_target instead of pull_request for auto-project-assign (#13648)
* Changes the token to fallback to github.token

* pull_request_target

* Update .github/workflows/add-to-project.yml

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

Co-authored-by: Pascal Jufer <pascal-jufer@bluewin.ch>
2022-06-01 14:04:53 -04:00
Jay Cammarano
1d5a32c5d6 add to project (#13581) 2022-05-26 14:13:34 -04:00
Nicola Krumschmidt
ed97f8bf97 Remove workaround in release flow (#13455)
This forces the release workflow to use `node@16.15` which includes `npm@8.5`.
2022-05-25 12:22:27 -04:00
Rijk van Zanten
eea9f45624 Add authenticate hook to implement custom auth checks against current request (#11942)
* Add "authenticate" filter hook that allows custom auth check

* Start on test

* Update Jest, restructure API tests, start implementing authenticate test

* Move access token verify to util function

* Ensure jest can show inline warnings on correct lines

* Update is-directus-jwt to use jsonwebtoken decode + add tests

* Remove unused package

* Tweak and finish + test authenticate

* Tweak test

* Add authenticate filter to docs

* Don't scan tests for codeql

* No seriously, ignore tests
2022-03-03 16:29:13 -05:00
Nicola Krumschmidt
aa5da81fc0 Remove no-break space characters with regular spaces (#11232)
There are quite a few other occurrences all over the translation files,
some of which feel intentionally placed.
2022-01-24 09:43:57 -05:00
rijkvanzanten
47792f5b73 Use correct branch 2022-01-19 13:01:05 -05:00
Oreille
9dda9caddb Enable end-to-end tests for Oracle and SQLite (#11094)
* Enable end-to-end tests for Oracle and SQLite

* Add Oracle back to allVendors

* Use yum

* Use dnf

* Actually use yum

* Actually use dnf

* Actually use yum

* Try again

* Try manual install

* Fix env declaration

* Bump knex version (because https://github.com/knex/knex/issues/4844)

* Set max pool size for Oracle

* Add awaitDatabaseConnection

* Cache install and build step

* Run different tests sequentially

* Fix workflow name

* Show test results

* Fix names

* Fix success check

* Fix outputs

* Add oracle driver install

* Fix env

* Revert to previous structure to benchmark performance

* Only build specs and drive packages for unit tests

* Don't install everything to run linters

* Use this branch

* Fix missing lint dep

* Revert "Don't install everything to run linters", also build shared package

* Skip app build for tests

* Don't serve app for e2e tests

* Change time fields to timestamp becaues of inconsistencies between vendors

* Make npm ci faster

Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-01-19 13:00:44 -05:00
Pascal Jufer
3ef0175df7 Make skipping of workflows work again (#11081) 2022-01-17 13:42:28 -05:00
Oreille
7e10d2017e End-to-end tests refactor (#10968)
* Refactor e2e tests

* Only install root dependencies for lint step

* Fix dumbest error ever

* Pass process.env too to spawned subprocess

* Suppress npm package installation prompt

* Improve error handling

* Add new compose file for tests

* Avoid port conflict with remoted

* Update docker-compose.yml

* Add test docs

* Use current branch workflow files and simplify skips

* Fix workflow file

* Fix workflow file

* Try adding `.yml` extension to allow reference in `uses`

* Place workflow file in folders to allow reference in `uses`

* Requires more work than expected, reverting

* Update docs to use correct compose file

* Remove comment / unused code

* Run tests from main

Co-authored-by: ian <licitdev@gmail.com>
Co-authored-by: Jay Cammarano <jay.cammarano@gmail.com>
Co-authored-by: rijkvanzanten <rijkvanzanten@me.com>
2022-01-13 16:32:45 -05:00
Jay Cammarano
00a838f020 Docs for testing the API (#10275)
* mock-knex

* test on the migrations run started.

* test passing for run.up()

* reorganize /tests/ to allow integration tests

* e2e setup changes

* e2e jest.config moved

* e2e paths fixed, integration config

* add nonadmin role and user seed+migration

* auth/login w/ documentation (docs will be moved)

* update user seed

* add postgres10 to the ci?

* argon2 saves the day

* items tests passing with postgres10 support

* removed comments

* move generateHash out of directus_users

Co-authored-by: Jay Cammarano <jaycammarano@gmail.com>
2021-12-10 14:58:51 -05:00
Pascal Jufer
76a306e7f4 Run end-to-end tests only if corresponding files have been modified (#10135) 2021-11-29 15:04:42 +00:00
Rijk van Zanten
8d87302f01 Delete assign-author-to-pr.yml
Moving forwards, assignee will be treated as the person responsible for getting the PR merged in. This won't always be the original author.
2021-11-26 18:01:28 -05:00
Pascal Jufer
6fbbcff0ee Enable E2E Tests on PRs (#9762) 2021-11-12 10:40:53 -05:00
Pascal Jufer
9bbfdec611 No 'latest' Docker tag for pre-releases anymore (#9512) 2021-11-09 09:42:15 -05:00
Pascal Jufer
1514b878fa Enhance comments in CI workflow (#9408) 2021-11-03 11:10:00 -04:00
Pascal Jufer
b9aa6a491b Switch back to fkirc/skip-duplicate-actions (#9312)
All changes have been merged in
2021-11-01 12:39:06 -04:00
Pascal Jufer
64fa364ea6 Rearrange on events in e2e workflow (#9308) 2021-11-01 11:16:50 -04:00
Pascal Jufer
6994bba791 Revise GitHub workflows #2 (#9240)
* GitHub workflow revision #2

* Add a few comments

* Add and fix comments

* Move kodiak config into .github

To not overflow the root directory

Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-11-01 11:05:13 -04:00
Jay Cammarano
ded3d4b141 workflow-dispatch added to e2e-tests.yml (#9265) 2021-10-30 17:11:36 -04:00
Pascal Jufer
3ba5c5935d Wait for checks before auto-merge Crowdin updates (#9156) 2021-10-26 09:48:45 -04:00
Pascal Jufer
ae1987a359 Revise GitHub workflows (#9011)
* Fix check for changed files & reformat workflows

* Test performance of paths-filter action

* Revise workflows

* Better wording

* Fix naming of "Pre-Check"

* Point out values

* Abreviate to make it look cleaner in report
2021-10-25 11:22:06 -04:00
Pascal Jufer
88813a59d3 Add GitHub Action to Auto-Merge Translations from Crowdin (#8966)
* Add Action to Auto-Merge Translations from Crowdin

* Don't trigger checks on translation updates
2021-10-20 11:01:14 -04:00
Tien Tran
b3f1e3383e Skip publish-npm job in the release workflow for forked repos (#8957) 2021-10-20 09:48:08 -04:00
Jay Cammarano
4794c103b1 disable sqlite in e2e tests on CI (#8774) 2021-10-13 22:12:10 +00:00
Pascal Jufer
e944fb9798 Try to fix "Assign author to PR" action (#8752)
Currently, it doesn't work and the log shows the following message: `Warning: Resource not accessible by integration`

Follow up of #8733
2021-10-12 19:52:02 -04:00
Oscar Dominguez
432fc0ff93 ci(workflow): add 'npm' cache for actions/setup-node in .github/workflows (#8748) 2021-10-12 16:10:17 -04:00
Pascal Jufer
99aa1d4984 Add GitHub action workflow to automate author assignment on pull requests (#8733)
* Add GitHub action workflows to automate issue and PR management

* Remove "Add label" action and bring back label on template
2021-10-12 13:03:36 -04:00
Rijk van Zanten
c8d205c8e4 Create codeql-analysis.yml 2021-09-29 12:03:01 -04:00
rijkvanzanten
d4b2a05453 Use npm ci instead of install, only run e2e on main 2021-09-27 16:36:09 -04:00
Jay Cammarano
a7b0cbe69b GitHub workflow to run tests on pushes to main and PRs (#8247)
* testing workflow

* name changed

* generateHash working

* changed pendingMock() to 0 because ticks > 5000

* removed empty tests

* removed empty tests

* Update packages/sdk/tests/utils.ts

Co-authored-by: José Varela <joselcvarela@gmail.com>

* updated workflow to add build

* added npm run build

* fixed get-filter-operators

* added env to workflow

* potential fix to index.test.ts

* added env variables for index.test.ts

* added caching and node-version matrix

* added all supported node versions

* only supported node versions

* updated to only support 16

* removed duplicate workflow caching

Co-authored-by: José Varela <joselcvarela@gmail.com>
2021-09-27 15:10:29 -04:00
Azri Kahar
bfdeb42cff fix readme filename in sync-dockerhub-readme.yml (#7892) 2021-09-07 11:46:02 -04:00
Azri Kahar
058bf9054e add github action for syncing readme to dockerhub (#7889) 2021-09-07 11:34:57 -04:00
rijkvanzanten
86ce598edd Tweak, hopefully fix release flow 2021-08-10 16:22:32 -04:00
renovate[bot]
30f8e3257f update styfle/cancel-workflow-action action to v0.9.1 (#7087)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-07-29 17:34:04 -04:00
Pascal Jufer
21ebcf30ab Add latest tag & remove sha tag for Docker image (#6837) 2021-07-15 16:17:37 -04:00
rijkvanzanten
f60deb9ca2 Remove prepublish build step, handled in CI 2021-07-15 14:23:48 -04:00
Nicola Krumschmidt
d529b0373b Use actions/setup-node's way of authenticating to npm registry (#6827) 2021-07-15 10:33:32 -04:00
Nicola Krumschmidt
87720f4ba2 Fix publishing packages without changes (#6825)
Despite the name, "--force-publish" is actually an option for "lerna version".
When using "lerna publish from-git", lerna won't run "lerna version" beforehand,
so we can savely remove the "lerna version"-specific options.
2021-07-15 10:22:58 -04:00
Sean Goff
f29dee4a3e disable lerna access verification (#6805) 2021-07-14 20:07:09 -04:00
rijkvanzanten
eae4b620ae Fix npm token in publish step 2021-07-14 18:18:51 -04:00
rijkvanzanten
ce50209ff6 Attempt to fix Release CD 2021-07-14 17:25:33 -04:00
rijkvanzanten
bd32589bb9 Remove NPM token check 2021-07-14 17:00:47 -04:00
rijkvanzanten
41e1a58536 Update release command to only version 2021-07-14 16:48:02 -04:00
Pascal Jufer
81c638b938 Add support for Docker ARM image (#6796)
* test

* ci improvements

* fix image names

* improve docs

* Update .github/workflows/release.yml

Co-authored-by: Pascal Jufer <paescuj@users.noreply.github.com>

* Update docker/pack.js

Co-authored-by: Pascal Jufer <paescuj@users.noreply.github.com>

* improvements proposed by @paescuj

* improve Dockerfile comment

* fix .PHONY

* rm tarballs before building final image

* Add support for Docker ARM image

* Label is already added by GitHub action

Co-authored-by: Sean Goff <sean318@hotmail.ch>
Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
2021-07-14 16:43:36 -04:00
Sean Goff
b67b9d824a Build improvements (#6759)
* test

* ci improvements

* fix image names

* improve docs

* Update .github/workflows/release.yml

Co-authored-by: Pascal Jufer <paescuj@users.noreply.github.com>

* Update docker/pack.js

Co-authored-by: Pascal Jufer <paescuj@users.noreply.github.com>

* improvements proposed by @paescuj

* improve Dockerfile comment

* fix .PHONY

* rm tarballs before building final image

Co-authored-by: Pascal Jufer <paescuj@users.noreply.github.com>
2021-07-14 16:40:38 -04:00
rijkvanzanten
10d0b5623c Limit to node 16 2021-07-14 16:29:16 -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
Rijk van Zanten
367d958fb3 Update e2e-tests.yml
Only run e2e on main branch latest commit
2021-06-03 12:42:08 -04:00