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

Switch to Github Actions #52

Merged
merged 1 commit into from
Sep 10, 2021

Conversation

Korbeil
Copy link
Member

@Korbeil Korbeil commented Sep 10, 2021

No description provided.

@Korbeil Korbeil force-pushed the feature/use-github-actions branch from a6ee485 to e5fa05b Compare September 10, 2021 09:52
@Korbeil Korbeil merged commit 190c462 into jolicode:master Sep 10, 2021
@Korbeil Korbeil deleted the feature/use-github-actions branch September 10, 2021 09:54
Copy link
Member

@lyrixx lyrixx left a comment

Choose a reason for hiding this comment

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

Super cool, thanks 💛
I left some comments, could you look at them, please?

@@ -0,0 +1,52 @@
name: CI
on: [push, pull_request]
Copy link
Member

Choose a reason for hiding this comment

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

(I contribute to this lib via this repo and not my fork. So there is no need to trigger the workflow twice)

tests:
runs-on: ubuntu-latest
strategy:
max-parallel: 15
Copy link
Member

Choose a reason for hiding this comment

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

can be removed

Comment on lines +14 to +18
- name: cache-composer
uses: actions/cache@v2
with:
path: ~/.composer/cache/
key: composer-${{ matrix.php-versions }}-${{ github.sha }}
Copy link
Member

Choose a reason for hiding this comment

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

can be removed

name: tests-${{ matrix.php-versions }}
steps:
- name: checkout
uses: actions/checkout@master
Copy link
Member

Choose a reason for hiding this comment

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

This is fragile

Suggested change
uses: actions/checkout@master
uses: actions/checkout@v2

Comment on lines +36 to +40
- name: cache-composer-lowest
uses: actions/cache@v2
with:
path: ~/.composer/cache/
key: composer-lowest-${{ github.sha }}
Copy link
Member

Choose a reason for hiding this comment

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

Can be removed

run: docker run -d -p 8081:80 httpbin
- name: tests
run: composer test
tests-lowest:
Copy link
Member

Choose a reason for hiding this comment

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

Can it be "merged" with the main job?
see https://github.com/jolicode/JoliNotif/blob/main/.github/workflows/ci.yml#L23-L35 for an example

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.

3 participants