-
Notifications
You must be signed in to change notification settings - Fork 8
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
Conversation
a6ee485
to
e5fa05b
Compare
There was a problem hiding this 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] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Could you add a cron too, like https://github.com/jolicode/docker-starter/blob/main/.github/workflows/ci.yml#L8-L10
- we will only build push on master and pr: https://github.com/jolicode/docker-starter/blob/main/.github/workflows/ci.yml#L4-L7
(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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can be removed
- name: cache-composer | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.composer/cache/ | ||
key: composer-${{ matrix.php-versions }}-${{ github.sha }} |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fragile
uses: actions/checkout@master | |
uses: actions/checkout@v2 |
- name: cache-composer-lowest | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.composer/cache/ | ||
key: composer-lowest-${{ github.sha }} |
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
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
No description provided.