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

Fredrick/issue 314/git action integration #346

Open
wants to merge 28 commits into
base: master
Choose a base branch
from

Conversation

iamfredrickokereke
Copy link

Hi Jeff,

Kindly check and review, I will make necessary corrections as required.

Thank you.

@sonarcloud
Copy link

sonarcloud bot commented Mar 9, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@jeff-knurek
Copy link
Contributor

I guess the first thing that needs to be addressed is that it works on it's own:
https://github.com/TheIOFoundation/ProjectLockdown/pull/346/checks?check_run_id=2064650228

  env:
    AZURE_WEBAPP_NAME: your-app-name
    AZURE_WEBAPP_PACKAGE_PATH: .
Error: Unable to find Node version '10.x, 11.x, 12.x, 13.x, 14.x' for platform linux and architecture x64.

Copy link
Contributor

@jeff-knurek jeff-knurek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 small change, and 1 bigger change please 🙏

.github/workflows/backend.yml Outdated Show resolved Hide resolved
Comment on lines 45 to 47
- if: github.ref == 'refs/heads/master' && job.status == 'success'
run: |
git push -u origin HEAD:master -f
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is interesting. it deploys in the previous step, and if successful auto-merges the code. but i don't think I like that approach. I'd rather only deploy if it is master. so maybe better to move this if statement to the previous deploy step, and so that we only deploy after the PR is closed and merged to master

Copy link
Contributor

@jeff-knurek jeff-knurek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the current build fails: https://github.com/TheIOFoundation/ProjectLockdown/pull/346/checks?check_run_id=2866537758

npm ERR! Invalid version: "2.0"

🤷 I'm not sure why

and I think you need to update your branch with the latest master so that the Netlify errors go away

Comment on lines 34 to 39
- if: github.ref == 'refs/heads/master' && job.status == 'success'
run: |
git push -u origin HEAD:master -f

- name: "Deploy to Azure"
uses: azure/webapps-deploy@v2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is all that is needed

Suggested change
- if: github.ref == 'refs/heads/master' && job.status == 'success'
run: |
git push -u origin HEAD:master -f
- name: "Deploy to Azure"
uses: azure/webapps-deploy@v2
- if: github.ref == 'refs/heads/master' && job.status == 'success'
name: "Deploy to Azure"
uses: azure/webapps-deploy@v2

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay I will correct it now, sorry I did not get any notification on my mail, hence my delayed response.

@netlify
Copy link

netlify bot commented Jun 21, 2021

✔️ Deploy Preview for dazzling-visvesvaraya-f47271 ready!

🔨 Explore the source changes: e09ab9b

🔍 Inspect the deploy log: https://app.netlify.com/sites/dazzling-visvesvaraya-f47271/deploys/60d09bd706ce030008206ef6

😎 Browse the preview: https://deploy-preview-346--dazzling-visvesvaraya-f47271.netlify.app

@iamfredrickokereke
Copy link
Author

This works now, however, the test script in the API directory failed as shown attached:

image

@iamfredrickokereke
Copy link
Author

New changes updated

@jeff-knurek
Copy link
Contributor

there's a couple dependencies that changed in the package.json file. the only change should be the 2.0.0 change

Screenshot from 2021-06-30 18-09-36

@iamfredrickokereke
Copy link
Author

Recent changes updated now.

@sonarcloud
Copy link

sonarcloud bot commented Jun 30, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@squash-labs
Copy link

squash-labs bot commented Jan 25, 2023

Manage this branch in Squash

Test this branch here: https://fredrickissue-314git-action-in-vs2c7.squash.io

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants