Exporting environment variables Exporting CI Exporting COVERALLS_BITLY_PHP_API_WRAPPER Exporting COVERALLS_CURRICULUM_VITAE Exporting COVERALLS_DOCKER_CLOUDFLARE_DDNS Exporting COVERALLS_JWT_DECODER Exporting COVERALLS_NPM_PKG_DATE_CONVERT Exporting COVERALLS_NPM_PKG_SHORTFIELD Exporting COVERALLS_NPM_PKG_YEAR_INTERVAL Exporting COVERALLS_ONLINE_BANKING_BACKEND Exporting COVERALLS_ONLINE_BANKING_FRONTEND Exporting DISPLAY Exporting DOCKER_TOKEN Exporting DOCKER_USERNAME Exporting GITLAB_TOKEN Exporting HEROKU_API_KEY Exporting NETLIFY_ACCESS_TOKEN Exporting NETLIFY_BITBANK_SITE_ID Exporting NETLIFY_CURRICULUM_VITAE_SITE_ID Exporting NODE_VERSION Exporting NPM_TOKEN Exporting PAGER Exporting SEMAPHORE Exporting SEMAPHORE_AGENT_MACHINE_ENVIRONMENT_TYPE Exporting SEMAPHORE_AGENT_MACHINE_OS_IMAGE Exporting SEMAPHORE_AGENT_MACHINE_TYPE Exporting SEMAPHORE_ARTIFACT_TOKEN Exporting SEMAPHORE_CACHE_ARCHIVE_METHOD Exporting SEMAPHORE_CACHE_BACKEND Exporting SEMAPHORE_CACHE_PRIVATE_KEY_PATH Exporting SEMAPHORE_CACHE_URL Exporting SEMAPHORE_CACHE_USERNAME Exporting SEMAPHORE_GIT_BRANCH Exporting SEMAPHORE_GIT_COMMIT_RANGE Exporting SEMAPHORE_GIT_DIR Exporting SEMAPHORE_GIT_PROVIDER Exporting SEMAPHORE_GIT_REF Exporting SEMAPHORE_GIT_REF_TYPE Exporting SEMAPHORE_GIT_REPO_NAME Exporting SEMAPHORE_GIT_REPO_SLUG Exporting SEMAPHORE_GIT_SHA Exporting SEMAPHORE_GIT_URL Exporting SEMAPHORE_GIT_WORKING_BRANCH Exporting SEMAPHORE_JOB_ID Exporting SEMAPHORE_JOB_NAME Exporting SEMAPHORE_ORGANIZATION_URL Exporting SEMAPHORE_PIPELINE_0_ARTEFACT_ID Exporting SEMAPHORE_PIPELINE_ARTEFACT_ID Exporting SEMAPHORE_PIPELINE_ID Exporting SEMAPHORE_PIPELINE_PROMOTED_BY Exporting SEMAPHORE_PIPELINE_PROMOTION Exporting SEMAPHORE_PIPELINE_RERUN Exporting SEMAPHORE_PROJECT_ID Exporting SEMAPHORE_PROJECT_NAME Exporting SEMAPHORE_TOOLBOX_METRICS_ENABLED Exporting SEMAPHORE_WORKFLOW_HOOK_SOURCE Exporting SEMAPHORE_WORKFLOW_ID Exporting SEMAPHORE_WORKFLOW_NUMBER Exporting SEMAPHORE_WORKFLOW_RERUN Exporting SEMAPHORE_WORKFLOW_TRIGGERED_BY_API Exporting SEMAPHORE_WORKFLOW_TRIGGERED_BY_HOOK Exporting SEMAPHORE_WORKFLOW_TRIGGERED_BY_SCHEDULE Exporting SONARSCANNER_VERSION Exporting SONAR_TOKEN Exporting SSH_PRIVATE_KEY_PATH Exporting TERM Exporting VERCEL_BITBANK_PROJECT_ID Exporting VERCEL_CURRICULUM_VITAE_PROJECT_ID Exporting VERCEL_ORG_ID Exporting VERCEL_TOKEN Injecting Files Injecting /home/semaphore/.ssh/semaphore_cache_key with file mode 0600 Injecting /home/semaphore/.ssh/id_rsa with file mode 0600 Setting up the Semaphore toolbox Running: dowloadPath=$(curl -s -L --retry 5 http://packages.semaphoreci.com/toolbox/linux) && echo $dowloadPath && curl -s -L --retry 5 --connect-timeout 3 $dowloadPath -o /tmp/toolbox.tar && tar -xvf /tmp/toolbox.tar && mv toolbox ~/.toolbox && bash ~/.toolbox/install-toolbox && source ~/.toolbox/toolbox && echo 'source ~/.toolbox/toolbox' >> ~/.bash_profile && if [ -f /etc/init.d/xvfb ]; then /etc/init.d/xvfb start; fi http://packages.semaphoreci.com/toolbox/releases/download/v1.19.26/linux.tar toolbox/ toolbox/enetwork toolbox/sem-service-check-params toolbox/sem-version toolbox/sem-dockerize toolbox/artifact toolbox/sem-context toolbox/test-results toolbox/sem-semantic-release toolbox/retry toolbox/install-toolbox toolbox/cache toolbox/install-package toolbox/system-metrics-collector toolbox/libchecksum toolbox/README.md toolbox/when toolbox/toolbox toolbox/spc toolbox/sem-install toolbox/ssh-session-cli toolbox/libcheckout toolbox/sem-service toolbox/Dockerfile.dev retry installed ssh-session-cli installed cache installed sem-context installed sem-service installed sem-dockerize installed sem-service-check-params installed sem-semantic-release installed install-package installed Installing the artifacts CLI artifacts installed Installing the test results CLI test-results installed Installing the SPC CLI spc installed Installing the when CLI when installed Installing the enetwork CLI when installed Starting to collect System Metrics in /tmp/system-metrics Starting virtual X frame buffer: Xvfb. Starting an ssh-agent Running: eval `ssh-agent` && echo 'eval $(ssh-agent) >/dev/null' >> ~/.bash_profile && echo 'yes' > /tmp/sempahore-user-commands-have-started Agent pid 2397 Connecting to cache Running: (ssh-keyscan -p 29920 -H 94.130.123.200 >> /home/semaphore/.ssh/known_hosts || true) && ssh-add /home/semaphore/.ssh/semaphore_cache_key # 94.130.123.200:29920 SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.7 # 94.130.123.200:29920 SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.7 # 94.130.123.200:29920 SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.7 # 94.130.123.200:29920 SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.7 # 94.130.123.200:29920 SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.7 Identity added: /home/semaphore/.ssh/semaphore_cache_key (/home/semaphore/.ssh/semaphore_cache_key) checkout Performing shallow clone with depth: 50 HEAD is now at b774bc9 Merge pull request #36 from sineverba/release-1.3.0 cache restore Detected .nvmrc. Fetching '/home/semaphore/.nvm' directory with cache keys 'nvm-master-64f0206cf436e6dcdca3d90db2eeddd7,nvm-master,nvm-main'... HIT: 'nvm-master-64f0206cf436e6dcdca3d90db2eeddd7', using key 'nvm-master-64f0206cf436e6dcdca3d90db2eeddd7'. Downloading key 'nvm-master-64f0206cf436e6dcdca3d90db2eeddd7'... Download complete. Duration: 655.410728ms. Size: 72.4M bytes. Unpacking '/tmp/nvm-master-64f0206cf436e6dcdca3d90db2eeddd7-989497349'... Unpack complete. Duration: 1.352252121s. Restored: /home/semaphore/.nvm/. Detected package-lock.json. Fetching 'node_modules' directory with cache keys 'node-modules-master-ba955eed8ac042283b9eda0f89dda6fb,node-modules-master,node-modules-main'... HIT: 'node-modules-master-ba955eed8ac042283b9eda0f89dda6fb', using key 'node-modules-master-ba955eed8ac042283b9eda0f89dda6fb'. Downloading key 'node-modules-master-ba955eed8ac042283b9eda0f89dda6fb'... Download complete. Duration: 201.955678ms. Size: 21.9M bytes. Unpacking '/tmp/node-modules-master-ba955eed8ac042283b9eda0f89dda6fb-1186046358'... Unpack complete. Duration: 563.864415ms. Restored: node_modules/. sem-version node $NODE_VERSION [08:06 23/02/2023]: Changing 'node' to version 16 Downloading and installing node v16.19.1... Downloading https://nodejs.semaphoreci.com/dist/v16.19.1/node-v16.19.1-linux-x64.tar.xz... ########################### 37.8% ################################################################ 89.4% ######################################################################## 100.0% Computing checksum with sha256sum Checksums matched! Now using node v16.19.1 (npm v8.19.3) Now using node v16.19.1 (npm v8.19.3) added 59 packages, and audited 60 packages in 2s 4 packages are looking for funding run `npm fund` for details found 0 vulnerabilities [08:06 23/02/2023]: Switch successful. npm run test > shortfield@1.3.0 test > jest PASS src/__tests__/shortener.test.ts Test Shortener ✓ Should throws error if missing param (6 ms) ✓ Should return same string if length is lesser than 10 chars ✓ Should return truncated string if length is equal or greater than 10 chars ✓ Should return truncated string of 20 chars length (11 ms) ✓ Should return truncated string of 4 chars length Test Suites: 1 passed, 1 total Tests: 5 passed, 5 total Snapshots: 0 total Time: 1.951 s Ran all test suites. Exporting environment variables Exporting SEMAPHORE_JOB_RESULT