diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..335f4025ae8b448dd67bdadb2d784032af10c704 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,24 @@ +stages: + - build + - test + +.nvm_env: &nvm_env + tags: + - redshift-js-rs + before_script: + - export NVM_DIR="$HOME/.nvm" + - . "$NVM_DIR/nvm.sh" + - export PATH="$HOME/.cargo/bin:$PATH" + +build: + <<: *nvm_env + stage: build + script: + - npm install + +test: + <<: *nvm_env + stage: test + script: + - npm install + - npm test