Azure / Azure/awesome-terraform

GitHub Actions Fails Build

Open
#5 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HCL
Stars
180
Forks
523
PR merge metrics
No merged PRs in 30d

Description

I was following this [tutorial](https://docs.microsoft.com/en-us/azure/developer/terraform/provision-infrastructure-using-azure-deployment-slots) from Microsoft docs about Terraform deployment in Azure App Service Slots.

After Iinking the fork, authorizing and selecting branch it triggers the GitHub Action, however this one fails in the build.

Run npm install
npm install
npm run build --if-present
npm run test --if-present
shell: C:\Program Files\PowerShell\7\pwsh.EXE -command ". '{0}'"
npm WARN enoent ENOENT: no such file or directory, open 'D:\a\awesome-terraform\awesome-terraform\package.json'
npm WARN awesome-terraform No description
npm WARN awesome-terraform No repository field.
npm WARN awesome-terraform No README data
npm WARN awesome-terraform No license field.
npm ERR! Windows_NT 10.0.[2](https://github.com/OscarSantos98/awesome-terraform/runs/7043172713?check_suite_focus=true#step:4:2)0[3](https://github.com/OscarSantos98/awesome-terraform/runs/7043172713?check_suite_focus=true#step:4:3)[4](https://github.com/OscarSantos98/awesome-terraform/runs/7043172713?check_suite_focus=true#step:4:4)8
npm ERR! argv "C:\\hostedtoolcache\\windows\\node\\6.9.1\\x64\\node.exe" "C:\\hostedtoolcache\\windows\\node\\6.9.1\\x64\\node_modules\\npm\\bin\\npm-cli.js" "run" "build" "--if-present"
npm ERR! node v6.9.1
npm ERR! npm v3.10.8
npm ERR! path D:\a\awesome-terraform\awesome-terraform\package.json
npm ERR! code ENOENT
npm ERR! errno -40[5](https://github.com/OscarSantos98/awesome-terraform/runs/7043172713?check_suite_focus=true#step:4:5)8
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open 'D:\a\awesome-terraform\awesome-terraform\package.json'
npm ERR! enoent ENOENT: no such file or directory, open 'D:\a\awesome-terraform\awesome-terraform\package.json'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! Please include the following file with any support request:
npm ERR! D:\a\awesome-terraform\awesome-terraform\npm-debug.log
npm ERR! Windows_NT 10.0.20348
npm ERR! argv "C:\\hostedtoolcache\\windows\\node\\[6](https://github.com/OscarSantos98/awesome-terraform/runs/7043172713?check_suite_focus=true#step:4:7).9.1\\x64\\node.exe" "C:\\hostedtoolcache\\windows\\node\\6.9.1\\x64\\node_modules\\npm\\bin\\npm-cli.js" "run" "test" "--if-present"
npm ERR! node v6.9.1
npm ERR! npm v3.10.[8](https://github.com/OscarSantos98/awesome-terraform/runs/7043172713?check_suite_focus=true#step:4:9)
npm ERR! path D:\a\awesome-terraform\awesome-terraform\package.json
npm ERR! code ENOENT
npm ERR! errno -[40](https://github.com/OscarSantos98/awesome-terraform/runs/7043172713?check_suite_focus=true#step:4:41)58
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open 'D:\a\awesome-terraform\awesome-terraform\package.json'
npm ERR! enoent ENOENT: no such file or directory, open 'D:\a\awesome-terraform\awesome-terraform\package.json'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! Please include the following file with any support request:
npm ERR! D:\a\awesome-terraform\awesome-terraform\npm-debug.log
Error: Process completed with exit code 1.

Inspecting the code I saw the commits says WIP so I don't know if this is finished.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the GitHub Actions run linked in the issue and inspect the workflow step that runs npm install, npm run build, and npm run test. Confirm whether the repository has the expected package.json and determine what a successful action run should do.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, node.js, terraform
Domain
build-system, ci-cd
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.