mirror of
https://github.com/bellingcat/datasheet-server.git
synced 2026-06-12 13:28:32 +03:00
* new server test with precommit hook to secure .env files, set up CI environment (#3) * [TESTS] added all registered routes to api server test * [WIP] abstracting config to env where it makes sense, refactoring elsewhere, adding more tests * [WIP] fixed tests so they fail as expected * [WIP] * [DEBUG] fixed issues with the env configuration, added correct tests * [MISC] env didn't get readded on last precommit * [TESTS] added longer wait time for server as sometimtimes tests fail arbitrarily
19 lines
346 B
YAML
19 lines
346 B
YAML
language: node_js
|
|
node_js:
|
|
- stable
|
|
cache:
|
|
directories:
|
|
- node_modules
|
|
before_script:
|
|
- npm install -g yarn
|
|
- cp ./src/example.config.js ./src/config.js
|
|
install:
|
|
- yarn
|
|
script:
|
|
- yarn build
|
|
- yarn lint
|
|
- yarn test
|
|
before_install:
|
|
- openssl aes-256-cbc -K $encrypted_4f23b46f1ec6_key -iv $encrypted_4f23b46f1ec6_iv
|
|
-in .env.enc -out .env -d
|