Exporting environment variables Exporting TERM Exporting PAGER Exporting DISPLAY Exporting CI Exporting SEMAPHORE Exporting SEMAPHORE_PROJECT_NAME Exporting SEMAPHORE_PROJECT_ID Exporting SEMAPHORE_JOB_NAME Exporting SEMAPHORE_JOB_ID Exporting SEMAPHORE_AGENT_MACHINE_TYPE Exporting SEMAPHORE_AGENT_MACHINE_OS_IMAGE Exporting SEMAPHORE_AGENT_MACHINE_ENVIRONMENT_TYPE Exporting SEMAPHORE_ORGANIZATION_URL Exporting SEMAPHORE_ARTIFACT_TOKEN Exporting SSH_PRIVATE_KEY_PATH Exporting SEMAPHORE_CACHE_BACKEND Exporting SEMAPHORE_CACHE_PRIVATE_KEY_PATH Exporting SEMAPHORE_CACHE_USERNAME Exporting SEMAPHORE_CACHE_URL Exporting SEMAPHORE_CACHE_NEW_CLI Exporting SEMAPHORE_TOOLBOX_METRICS_ENABLED Exporting SEMAPHORE_GIT_PROVIDER Exporting SEMAPHORE_GIT_URL Exporting SEMAPHORE_GIT_DIR Exporting SEMAPHORE_GIT_SHA Exporting SEMAPHORE_GIT_REPO_SLUG Exporting SEMAPHORE_GIT_REF Exporting SEMAPHORE_GIT_COMMIT_RANGE Exporting SEMAPHORE_GIT_REF_TYPE Exporting SEMAPHORE_GIT_BRANCH Exporting COVERALLS_REPO_TOKEN Exporting NPM_TOKEN Exporting SONAR_AUTH_TOKEN Exporting SEMAPHORE_WORKFLOW_ID Exporting SEMAPHORE_WORKFLOW_NUMBER Exporting SEMAPHORE_WORKFLOW_RERUN Exporting SEMAPHORE_WORKFLOW_TRIGGERED_BY_HOOK Exporting SEMAPHORE_WORKFLOW_HOOK_SOURCE Exporting SEMAPHORE_WORKFLOW_TRIGGERED_BY_SCHEDULE Exporting SEMAPHORE_WORKFLOW_TRIGGERED_BY_API Exporting SEMAPHORE_PIPELINE_ARTEFACT_ID Exporting SEMAPHORE_PIPELINE_ID Exporting SEMAPHORE_PIPELINE_RERUN Exporting SEMAPHORE_PIPELINE_PROMOTION Exporting SEMAPHORE_PIPELINE_PROMOTED_BY Exporting SEMAPHORE_PIPELINE_0_ARTEFACT_ID Exporting NODE_VERSION Injecting Files Injecting /home/semaphore/.ssh/semaphore_cache_key with file mode 0600 Injecting .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.16.2/linux.tar toolbox/ toolbox/sem-service-check-params toolbox/ssh-session-cli toolbox/sem-version toolbox/new-cache toolbox/libchecksum toolbox/sem-service toolbox/toolbox toolbox/sem-install toolbox/install-toolbox toolbox/libcheckout toolbox/artifact toolbox/system-metrics-collector toolbox/cache toolbox/spc toolbox/install-package toolbox/README.md toolbox/retry toolbox/sem-dockerize toolbox/when toolbox/test-results toolbox/enetwork retry installed ssh-session-cli installed cache installed sem-service installed sem-dockerize installed sem-service-check-params 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 2317 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.3 # 94.130.123.200:29920 SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.3 # 94.130.123.200:29920 SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.3 # 94.130.123.200:29920 SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.3 # 94.130.123.200:29920 SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.3 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 815efd3 Upgrade dependencies and CI cache restore Detected .nvmrc. Fetching '/home/semaphore/.nvm' directory with cache keys 'nvm-upgrade-dependencies-4c11bc985b1c15c9f52fcee9511bbc5f,nvm-upgrade-dependencies,nvm-master'... HIT: 'nvm-upgrade-dependencies-4c11bc985b1c15c9f52fcee9511bbc5f', using key 'nvm-upgrade-dependencies-4c11bc985b1c15c9f52fcee9511bbc5f'. Downloading key 'nvm-upgrade-dependencies-4c11bc985b1c15c9f52fcee9511bbc5f'... Download complete. Duration: 892.566496ms. Size: 58.8M bytes. Unpacking '/tmp/nvm-upgrade-dependencies-4c11bc985b1c15c9f52fcee9511bbc5f-175029217'... Unpack complete. Duration: 1.218732439s. Restored: /home/semaphore/.nvm/. Detected package-lock.json. Fetching 'node_modules' directory with cache keys 'node-modules-upgrade-dependencies-e6f7615b152bc1ce9c98a920fa4b4cd3,node-modules-upgrade-dependencies,node-modules-master'... HIT: 'node-modules-upgrade-dependencies-e6f7615b152bc1ce9c98a920fa4b4cd3', using key 'node-modules-upgrade-dependencies-e6f7615b152bc1ce9c98a920fa4b4cd3'. Downloading key 'node-modules-upgrade-dependencies-e6f7615b152bc1ce9c98a920fa4b4cd3'... Download complete. Duration: 74.082776ms. Size: 7.6M bytes. Unpacking '/tmp/node-modules-upgrade-dependencies-e6f7615b152bc1ce9c98a920fa4b4cd3-004741580'... Unpack complete. Duration: 237.707984ms. Restored: node_modules/. sem-version node $NODE_VERSION [07:33 08/02/2022]: Changing 'node' to version 14 Downloading and installing node v14.19.0... Downloading https://nodejs.semaphoreci.com/dist/v14.19.0/node-v14.19.0-linux-x64.tar.xz... ############################## 42.7% #################################################################### 95.6% ######################################################################## 100.0% Computing checksum with sha256sum Checksums matched! Now using node v14.19.0 (npm v6.14.16) Now using node v14.19.0 (npm v6.14.16) /home/semaphore/.nvm/versions/node/v14.19.0/bin/grunt -> /home/semaphore/.nvm/versions/node/v14.19.0/lib/node_modules/grunt-cli/bin/grunt + grunt-cli@1.4.3 added 59 packages from 71 contributors in 2.763s [07:33 08/02/2022]: Switch successful. node --version v14.19.0 npm run test > @sineverba/years-interval@1.2.1 test /home/semaphore/npm-pkg-year-interval > npx nyc mocha Browserslist: caniuse-lite is outdated. Please run: npx browserslist@latest --update-db Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating #interval ✔ Should return only current year ✔ Should return two years ✔ Should throw error 3 passing (4ms) ----------|---------|----------|---------|---------|------------------- File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s ----------|---------|----------|---------|---------|------------------- All files | 100 | 100 | 100 | 100 | index.js | 100 | 100 | 100 | 100 | ----------|---------|----------|---------|---------|------------------- export SEMAPHORE_JOB_RESULT=passed