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

Support Laravel 9 #28

Merged
merged 6 commits into from
Nov 15, 2022
Merged

Support Laravel 9 #28

merged 6 commits into from
Nov 15, 2022

Conversation

tenshiAMD
Copy link
Contributor

@tenshiAMD tenshiAMD commented Oct 2, 2022

Fixes #27.

Laravel 9 requires PHP 8.0 or latest and "guzzlehttp/guzzle": "^7.2". Checkout https://github.com/laravel/framework/blob/da859e7c1d67278d79ad95410c7656e6b4f8e7be/composer.json#L89.

@tenshiAMD
Copy link
Contributor Author

@Olofguard I run the tests in my local and all passed. Looks like the docker image build is the only one failing. Please check. Thanks! 🎉

Screen Shot 2022-10-02 at 11 53 29 PM

@tenshiAMD
Copy link
Contributor Author

with:
path: /tmp/composer-cache
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}

- name: Install Dependencies
uses: php-actions/composer@master
Copy link
Member

@Olofguard Olofguard Oct 4, 2022

Choose a reason for hiding this comment

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

Sorry have not had time to look at this. I wonder if it's because we're @master here for php-actions and master doesn't have 8 and 8.1 yet. Can you try uses: php-actions/composer@v6 looks like from the docs https://github.com/php-actions/composer#using-different-versions-of-php-or-composer @v6 and @v7 both have 8.1 support.

This is just a guess off the top of my head. This is the most i've been able to dig into this atm.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Olofguard I think the issues are the packages created by the workflow, you need to delete those and rerun the workflow. Here's the proof that all tests have passed. https://github.com/tenshiAMD/php-healthz/actions/runs/3169232332

Copy link
Member

Choose a reason for hiding this comment

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

No actually looks the like issue is that on your branch it tries to push to our org which of course doesn't work as it's coming from your fork not from our repo. At least that's what I'm understanding atm. I'll investigate more when i have some more time.

Here's the error from the debug log

Successfully tagged docker.pkg.github.com/generationtux/php-healthz/php-actions_composer_php-healthz:php-8.0-build2
  The push refers to repository [docker.pkg.github.com/generationtux/php-healthz/php-actions_composer_php-healthz]
  663422d6247b: Preparing
  692f464f5400: Preparing
  e3026b9684d6: Preparing
  0103c6155893: Preparing
  e8a1531411ad: Preparing
  b5ddaa9e9c6f: Preparing
  744437e91ddb: Preparing
  49a1a2a80ba6: Preparing
  cd3f5d78e589: Preparing
  994393dc58e7: Preparing
  b5ddaa9e9c6f: Waiting
  744437e91ddb: Waiting
  49a1a2a80ba6: Waiting
  cd3f5d78e589: Waiting
  994393dc58e7: Waiting
  denied: installation not allowed to Write organization package

@tenshiAMD
Copy link
Contributor Author

@Olofguard hi, can you give this one some time? we need this package for one of our projects and we do not what to use our fork. Thanks!

@Olofguard
Copy link
Member

Yes as soon as i can i will. I apologize we just moved github actions for this repo and I have zero experience with it. I'll touch base with our engineer that set it up.

@tenshiAMD
Copy link
Contributor Author

Yes as soon as i can i will. I apologize we just moved github actions for this repo and I have zero experience with it. I'll touch base with our engineer that set it up.

@Olofguard sure however can you try updating the workflow similar to mine? and pushing it and let's see if it solves it since php-actions/composer require write permissions to create packages which I do not have.

@tenshiAMD
Copy link
Contributor Author

@Olofguard gentle ping

@tenshiAMD
Copy link
Contributor Author

@Olofguard please check

@Olofguard
Copy link
Member

Tested these changes on my own branch and it passed. Im just going to merge it, it should pass when it's in master under our org.

@Olofguard Olofguard merged commit 9073e31 into generationtux:master Nov 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support Laravel 9
2 participants