Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHub Action is not able to find Mocha when testing #10

Open
MarcoSteinke opened this issue Mar 7, 2021 · 0 comments
Open

GitHub Action is not able to find Mocha when testing #10

MarcoSteinke opened this issue Mar 7, 2021 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@MarcoSteinke
Copy link
Owner

I have installed mocha via npm and written a dummy test, which also runs locally:

> surveillance-server@1.0.0 test C:\Users\mstei\Desktop\Security-Cam\src\server
> mocha



  Array
    #indexOf()
       should return -1 when the value is not present


  1 passing (6ms)

But the GitHub action is not able to find it. I have added the log:

2021-03-07T13:37:31.4390541Z ##[section]Starting: Request a runner to run this job
2021-03-07T13:37:31.8149659Z Can't find any online and idle self-hosted runner in current repository that matches the required labels: 'ubuntu-latest'
2021-03-07T13:37:31.8149805Z Can't find any online and idle self-hosted runner in current repository's account/organization that matches the required labels: 'ubuntu-latest'
2021-03-07T13:37:31.8150029Z Found online and idle hosted runner in current repository's account/organization that matches the required labels: 'ubuntu-latest'
2021-03-07T13:37:31.9516249Z ##[section]Finishing: Request a runner to run this job
2021-03-07T13:37:39.8830345Z Current runner version: '2.277.1'
2021-03-07T13:37:39.8865066Z ##[group]Operating System
2021-03-07T13:37:39.8866166Z Ubuntu
2021-03-07T13:37:39.8866628Z 18.04.5
2021-03-07T13:37:39.8867175Z LTS
2021-03-07T13:37:39.8867661Z ##[endgroup]
2021-03-07T13:37:39.8868301Z ##[group]Virtual Environment
2021-03-07T13:37:39.8869027Z Environment: ubuntu-18.04
2021-03-07T13:37:39.8869666Z Version: 20210302.0
2021-03-07T13:37:39.8870752Z Included Software: https://github.com/actions/virtual-environments/blob/ubuntu18/20210302.0/images/linux/Ubuntu1804-README.md
2021-03-07T13:37:39.8872319Z Image Release: https://github.com/actions/virtual-environments/releases/tag/ubuntu18%2F
2021-03-07T13:37:39.8873254Z ##[endgroup]
2021-03-07T13:37:39.8875825Z ##[group]GITHUB_TOKEN Permissions
2021-03-07T13:37:39.8877320Z Actions: write
2021-03-07T13:37:39.8878274Z Checks: write
2021-03-07T13:37:39.8878765Z Contents: write
2021-03-07T13:37:39.8879279Z Deployments: write
2021-03-07T13:37:39.8879956Z Issues: write
2021-03-07T13:37:39.8880527Z Metadata: read
2021-03-07T13:37:39.8881195Z OrganizationPackages: write
2021-03-07T13:37:39.8881802Z Packages: write
2021-03-07T13:37:39.8882389Z PullRequests: write
2021-03-07T13:37:39.8882997Z RepositoryProjects: write
2021-03-07T13:37:39.8883618Z SecurityEvents: write
2021-03-07T13:37:39.8884392Z Statuses: write
2021-03-07T13:37:39.8885207Z ##[endgroup]
2021-03-07T13:37:39.8889041Z Prepare workflow directory
2021-03-07T13:37:39.9847740Z Prepare all required actions
2021-03-07T13:37:39.9860580Z Getting action download info
2021-03-07T13:37:40.3648393Z Download action repository 'actions/checkout@v2'
2021-03-07T13:37:42.4347615Z Download action repository 'actions/setup-node@v1'
2021-03-07T13:37:42.7509562Z ##[group]Run actions/checkout@v2
2021-03-07T13:37:42.7510242Z with:
2021-03-07T13:37:42.7510822Z   repository: MarcoSteinke/Security-Cam
2021-03-07T13:37:42.7511686Z   token: ***
2021-03-07T13:37:42.7512164Z   ssh-strict: true
2021-03-07T13:37:42.7512669Z   persist-credentials: true
2021-03-07T13:37:42.7513428Z   clean: true
2021-03-07T13:37:42.7513855Z   fetch-depth: 1
2021-03-07T13:37:42.7514275Z   lfs: false
2021-03-07T13:37:42.7514778Z   submodules: false
2021-03-07T13:37:42.7515220Z ##[endgroup]
2021-03-07T13:37:43.1931214Z Syncing repository: MarcoSteinke/Security-Cam
2021-03-07T13:37:43.1932362Z ##[group]Getting Git version info
2021-03-07T13:37:43.1933751Z Working directory is '/home/runner/work/Security-Cam/Security-Cam'
2021-03-07T13:37:43.1952583Z [command]/usr/bin/git version
2021-03-07T13:37:43.2131771Z git version 2.30.1
2021-03-07T13:37:43.2157792Z ##[endgroup]
2021-03-07T13:37:43.2165497Z Deleting the contents of '/home/runner/work/Security-Cam/Security-Cam'
2021-03-07T13:37:43.2170094Z ##[group]Initializing the repository
2021-03-07T13:37:43.2174545Z [command]/usr/bin/git init /home/runner/work/Security-Cam/Security-Cam
2021-03-07T13:37:43.2253475Z hint: Using 'master' as the name for the initial branch. This default branch name
2021-03-07T13:37:43.7145202Z hint: is subject to change. To configure the initial branch name to use in all
2021-03-07T13:37:43.7202520Z hint: of your new repositories, which will suppress this warning, call:
2021-03-07T13:37:43.7208910Z hint: 
2021-03-07T13:37:43.7210662Z hint: 	git config --global init.defaultBranch <name>
2021-03-07T13:37:43.7211636Z hint: 
2021-03-07T13:37:43.7212689Z hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
2021-03-07T13:37:43.7214107Z hint: 'development'. The just-created branch can be renamed via this command:
2021-03-07T13:37:43.7215012Z hint: 
2021-03-07T13:37:43.7216561Z hint: 	git branch -m <name>
2021-03-07T13:37:43.7217947Z Initialized empty Git repository in /home/runner/work/Security-Cam/Security-Cam/.git/
2021-03-07T13:37:43.7219834Z [command]/usr/bin/git remote add origin https://github.com/MarcoSteinke/Security-Cam
2021-03-07T13:37:43.7220919Z ##[endgroup]
2021-03-07T13:37:43.7221998Z ##[group]Disabling automatic garbage collection
2021-03-07T13:37:43.7223891Z [command]/usr/bin/git config --local gc.auto 0
2021-03-07T13:37:43.7225071Z ##[endgroup]
2021-03-07T13:37:43.7227482Z ##[group]Setting up auth
2021-03-07T13:37:43.7229175Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
2021-03-07T13:37:43.7230985Z [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :
2021-03-07T13:37:43.7233172Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
2021-03-07T13:37:43.7235538Z [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :
2021-03-07T13:37:43.7238058Z [command]/usr/bin/git config --local http.https://github.com/.extraheader AUTHORIZATION: basic ***
2021-03-07T13:37:43.7239267Z ##[endgroup]
2021-03-07T13:37:43.7240154Z ##[group]Fetching the repository
2021-03-07T13:37:43.7242145Z [command]/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +a32affc62e2aa2189e49ac16e94ee28a4dffedae:refs/remotes/origin/main
2021-03-07T13:37:43.7243821Z remote: Enumerating objects: 48, done.        
2021-03-07T13:37:43.7244648Z remote: Counting objects:   2% (1/48)        
2021-03-07T13:37:43.7245339Z remote: Counting objects:   4% (2/48)        
2021-03-07T13:37:43.7246128Z remote: Counting objects:   6% (3/48)        
2021-03-07T13:37:43.7247044Z remote: Counting objects:   8% (4/48)        
2021-03-07T13:37:43.7247832Z remote: Counting objects:  10% (5/48)        
2021-03-07T13:37:43.7248838Z remote: Counting objects:  12% (6/48)        
2021-03-07T13:37:43.7249691Z remote: Counting objects:  14% (7/48)        
2021-03-07T13:37:43.7250548Z remote: Counting objects:  16% (8/48)        
2021-03-07T13:37:43.7251778Z remote: Counting objects:  18% (9/48)        
2021-03-07T13:37:43.7252645Z remote: Counting objects:  20% (10/48)        
2021-03-07T13:37:43.7253502Z remote: Counting objects:  22% (11/48)        
2021-03-07T13:37:43.7254350Z remote: Counting objects:  25% (12/48)        
2021-03-07T13:37:43.7255154Z remote: Counting objects:  27% (13/48)        
2021-03-07T13:37:43.7255995Z remote: Counting objects:  29% (14/48)        
2021-03-07T13:37:43.7256766Z remote: Counting objects:  31% (15/48)        
2021-03-07T13:37:43.7257609Z remote: Counting objects:  33% (16/48)        
2021-03-07T13:37:43.7258378Z remote: Counting objects:  35% (17/48)        
2021-03-07T13:37:43.7259223Z remote: Counting objects:  37% (18/48)        
2021-03-07T13:37:43.7260213Z remote: Counting objects:  39% (19/48)        
2021-03-07T13:37:43.7261031Z remote: Counting objects:  41% (20/48)        
2021-03-07T13:37:43.7261988Z remote: Counting objects:  43% (21/48)        
2021-03-07T13:37:43.7262804Z remote: Counting objects:  45% (22/48)        
2021-03-07T13:37:43.7263557Z remote: Counting objects:  47% (23/48)        
2021-03-07T13:37:43.7264562Z remote: Counting objects:  50% (24/48)        
2021-03-07T13:37:43.7265345Z remote: Counting objects:  52% (25/48)        
2021-03-07T13:37:43.7266152Z remote: Counting objects:  54% (26/48)        
2021-03-07T13:37:43.7266899Z remote: Counting objects:  56% (27/48)        
2021-03-07T13:37:43.7267711Z remote: Counting objects:  58% (28/48)        
2021-03-07T13:37:43.7268675Z remote: Counting objects:  60% (29/48)        
2021-03-07T13:37:43.7269580Z remote: Counting objects:  62% (30/48)        
2021-03-07T13:37:43.7270374Z remote: Counting objects:  64% (31/48)        
2021-03-07T13:37:43.7271211Z remote: Counting objects:  66% (32/48)        
2021-03-07T13:37:43.7272175Z remote: Counting objects:  68% (33/48)        
2021-03-07T13:37:43.7272989Z remote: Counting objects:  70% (34/48)        
2021-03-07T13:37:43.7273803Z remote: Counting objects:  72% (35/48)        
2021-03-07T13:37:43.7274622Z remote: Counting objects:  75% (36/48)        
2021-03-07T13:37:43.7275369Z remote: Counting objects:  77% (37/48)        
2021-03-07T13:37:43.7276392Z remote: Counting objects:  79% (38/48)        
2021-03-07T13:37:43.7277145Z remote: Counting objects:  81% (39/48)        
2021-03-07T13:37:43.7277978Z remote: Counting objects:  83% (40/48)        
2021-03-07T13:37:43.7278738Z remote: Counting objects:  85% (41/48)        
2021-03-07T13:37:43.7279561Z remote: Counting objects:  87% (42/48)        
2021-03-07T13:37:43.7280309Z remote: Counting objects:  89% (43/48)        
2021-03-07T13:37:43.7281115Z remote: Counting objects:  91% (44/48)        
2021-03-07T13:37:43.7281859Z remote: Counting objects:  93% (45/48)        
2021-03-07T13:37:43.7282724Z remote: Counting objects:  95% (46/48)        
2021-03-07T13:37:43.7283486Z remote: Counting objects:  97% (47/48)        
2021-03-07T13:37:43.7284313Z remote: Counting objects: 100% (48/48)        
2021-03-07T13:37:43.7285088Z remote: Counting objects: 100% (48/48), done.        
2021-03-07T13:37:43.7285979Z remote: Compressing objects:   2% (1/44)        
2021-03-07T13:37:43.7286805Z remote: Compressing objects:   4% (2/44)        
2021-03-07T13:37:43.7287699Z remote: Compressing objects:   6% (3/44)        
2021-03-07T13:37:43.7288490Z remote: Compressing objects:   9% (4/44)        
2021-03-07T13:37:43.7289346Z remote: Compressing objects:  11% (5/44)        
2021-03-07T13:37:43.7290136Z remote: Compressing objects:  13% (6/44)        
2021-03-07T13:37:43.7291016Z remote: Compressing objects:  15% (7/44)        
2021-03-07T13:37:43.7291811Z remote: Compressing objects:  18% (8/44)        
2021-03-07T13:37:43.7292689Z remote: Compressing objects:  20% (9/44)        
2021-03-07T13:37:43.7293579Z remote: Compressing objects:  22% (10/44)        
2021-03-07T13:37:43.7294467Z remote: Compressing objects:  25% (11/44)        
2021-03-07T13:37:43.7295313Z remote: Compressing objects:  27% (12/44)        
2021-03-07T13:37:43.7297149Z remote: Compressing objects:  29% (13/44)        
2021-03-07T13:37:43.7298033Z remote: Compressing objects:  31% (14/44)        
2021-03-07T13:37:43.7298984Z remote: Compressing objects:  34% (15/44)        
2021-03-07T13:37:43.7300278Z remote: Compressing objects:  36% (16/44)        
2021-03-07T13:37:43.7301144Z remote: Compressing objects:  38% (17/44)        
2021-03-07T13:37:43.7302875Z remote: Compressing objects:  40% (18/44)        
2021-03-07T13:37:43.7303713Z remote: Compressing objects:  43% (19/44)        
2021-03-07T13:37:43.7304484Z remote: Compressing objects:  45% (20/44)        
2021-03-07T13:37:43.7305320Z remote: Compressing objects:  47% (21/44)        
2021-03-07T13:37:43.7306092Z remote: Compressing objects:  50% (22/44)        
2021-03-07T13:37:43.7307020Z remote: Compressing objects:  52% (23/44)        
2021-03-07T13:37:43.7308003Z remote: Compressing objects:  54% (24/44)        
2021-03-07T13:37:43.7308780Z remote: Compressing objects:  56% (25/44)        
2021-03-07T13:37:43.7309590Z remote: Compressing objects:  59% (26/44)        
2021-03-07T13:37:43.7310371Z remote: Compressing objects:  61% (27/44)        
2021-03-07T13:37:43.7311230Z remote: Compressing objects:  63% (28/44)        
2021-03-07T13:37:43.7312007Z remote: Compressing objects:  65% (29/44)        
2021-03-07T13:37:43.7312823Z remote: Compressing objects:  68% (30/44)        
2021-03-07T13:37:43.7313573Z remote: Compressing objects:  70% (31/44)        
2021-03-07T13:37:43.7314415Z remote: Compressing objects:  72% (32/44)        
2021-03-07T13:37:43.7315226Z remote: Compressing objects:  75% (33/44)        
2021-03-07T13:37:43.7316198Z remote: Compressing objects:  77% (34/44)        
2021-03-07T13:37:43.7316940Z remote: Compressing objects:  79% (35/44)        
2021-03-07T13:37:43.7317748Z remote: Compressing objects:  81% (36/44)        
2021-03-07T13:37:43.7318502Z remote: Compressing objects:  84% (37/44)        
2021-03-07T13:37:43.7319568Z remote: Compressing objects:  86% (38/44)        
2021-03-07T13:37:43.7320205Z remote: Compressing objects:  88% (39/44)        
2021-03-07T13:37:43.7321011Z remote: Compressing objects:  90% (40/44)        
2021-03-07T13:37:43.7396528Z remote: Compressing objects:  93% (41/44)        
2021-03-07T13:37:43.7397925Z remote: Compressing objects:  95% (42/44)        
2021-03-07T13:37:43.7398793Z remote: Compressing objects:  97% (43/44)        
2021-03-07T13:37:43.7399579Z remote: Compressing objects: 100% (44/44)        
2021-03-07T13:37:43.7400750Z remote: Compressing objects: 100% (44/44), done.        
2021-03-07T13:37:43.7402025Z remote: Total 48 (delta 2), reused 27 (delta 0), pack-reused 0        
2021-03-07T13:37:43.7403247Z From https://github.com/MarcoSteinke/Security-Cam
2021-03-07T13:37:43.7405045Z  * [new ref]         a32affc62e2aa2189e49ac16e94ee28a4dffedae -> origin/main
2021-03-07T13:37:43.7406066Z ##[endgroup]
2021-03-07T13:37:43.7406848Z ##[group]Determining the checkout info
2021-03-07T13:37:43.7407564Z ##[endgroup]
2021-03-07T13:37:43.7408431Z ##[group]Checking out the ref
2021-03-07T13:37:43.7409524Z [command]/usr/bin/git checkout --progress --force -B main refs/remotes/origin/main
2021-03-07T13:37:43.7410671Z Switched to a new branch 'main'
2021-03-07T13:37:43.7624299Z Branch 'main' set up to track remote branch 'main' from 'origin'.
2021-03-07T13:37:43.7658983Z ##[endgroup]
2021-03-07T13:37:43.7660363Z [command]/usr/bin/git log -1 --format='%H'
2021-03-07T13:37:43.7661736Z 'a32affc62e2aa2189e49ac16e94ee28a4dffedae'
2021-03-07T13:37:43.7778299Z ##[group]Run actions/setup-node@v1
2021-03-07T13:37:43.7778887Z with:
2021-03-07T13:37:43.7779357Z   node-version: 15.x
2021-03-07T13:37:43.7780030Z   always-auth: false
2021-03-07T13:37:43.7780516Z ##[endgroup]
2021-03-07T13:37:44.3592033Z [command]/bin/tar xz --warning=no-unknown-keyword -C /home/runner/work/_temp/721bdb84-2865-4a76-8790-53393e802730 -f /home/runner/work/_temp/2e8b47f5-e751-43fa-8c7a-9a31f5ecf9a3
2021-03-07T13:37:46.5097093Z [command]/opt/hostedtoolcache/node/15.11.0/x64/bin/node --version
2021-03-07T13:37:46.5169181Z v15.11.0
2021-03-07T13:37:46.5195837Z [command]/opt/hostedtoolcache/node/15.11.0/x64/bin/npm --version
2021-03-07T13:37:46.7692336Z 7.6.0
2021-03-07T13:37:46.7994671Z ##[group]Run npm run build --if-present
2021-03-07T13:37:46.7995264Z [36;1mnpm run build --if-present�[0m
2021-03-07T13:37:46.8042337Z shell: /bin/bash -e {0}
2021-03-07T13:37:46.8042716Z ##[endgroup]
2021-03-07T13:37:47.1047967Z ##[group]Run npm test
2021-03-07T13:37:47.1048475Z [36;1mnpm test�[0m
2021-03-07T13:37:47.1095397Z shell: /bin/bash -e {0}
2021-03-07T13:37:47.1095790Z ##[endgroup]
2021-03-07T13:37:47.3712971Z 
2021-03-07T13:37:47.3716560Z > surveillance-server@1.0.0 test
2021-03-07T13:37:47.3719702Z > mocha
2021-03-07T13:37:47.3736407Z 
2021-03-07T13:37:47.3778876Z sh: 1: mocha: not found
2021-03-07T13:37:47.3860396Z ##[error]Process completed with exit code 127.
2021-03-07T13:37:47.3961006Z Post job cleanup.
2021-03-07T13:37:47.5083717Z [command]/usr/bin/git version
2021-03-07T13:37:47.5146472Z git version 2.30.1
2021-03-07T13:37:47.5186138Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
2021-03-07T13:37:47.5224485Z [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :
2021-03-07T13:37:47.5460066Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
2021-03-07T13:37:47.5483349Z http.https://github.com/.extraheader
2021-03-07T13:37:47.5491498Z [command]/usr/bin/git config --local --unset-all http.https://github.com/.extraheader
2021-03-07T13:37:47.5530522Z [command]/usr/bin/git submodule foreach --recursive git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :
2021-03-07T13:37:47.5814438Z Cleaning up orphan processes
@MarcoSteinke MarcoSteinke added help wanted Extra attention is needed bug Something isn't working labels Mar 7, 2021
@MarcoSteinke MarcoSteinke added this to the Proof of Concept milestone Mar 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant