-
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,52 @@ | ||||||
name: CI | ||||||
on: [push, pull_request] | ||||||
jobs: | ||||||
tests: | ||||||
runs-on: ubuntu-latest | ||||||
strategy: | ||||||
max-parallel: 15 | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can be removed |
||||||
matrix: | ||||||
php-versions: ['7.4', '8.0'] | ||||||
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 commentThe reason will be displayed to describe this comment to others. Learn more. This is fragile
Suggested change
|
||||||
- name: cache-composer | ||||||
uses: actions/cache@v2 | ||||||
with: | ||||||
path: ~/.composer/cache/ | ||||||
key: composer-${{ matrix.php-versions }}-${{ github.sha }} | ||||||
Comment on lines
+14
to
+18
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can be removed |
||||||
- name: setup | ||||||
uses: shivammathur/[email protected] | ||||||
with: | ||||||
php-version: ${{ matrix.php-versions }} | ||||||
- name: composer install | ||||||
run: composer update --prefer-stable | ||||||
- name: Build docker | ||||||
run: docker build -t httpbin . | ||||||
- name: Run docker | ||||||
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 commentThe reason will be displayed to describe this comment to others. Learn more. Can it be "merged" with the main job? |
||||||
runs-on: ubuntu-latest | ||||||
steps: | ||||||
- name: checkout | ||||||
uses: actions/checkout@master | ||||||
- name: cache-composer-lowest | ||||||
uses: actions/cache@v2 | ||||||
with: | ||||||
path: ~/.composer/cache/ | ||||||
key: composer-lowest-${{ github.sha }} | ||||||
Comment on lines
+36
to
+40
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can be removed |
||||||
- name: setup | ||||||
uses: shivammathur/[email protected] | ||||||
with: | ||||||
php-version: 7.3 | ||||||
- name: composer install | ||||||
run: composer update --prefer-lowest --prefer-stable | ||||||
- name: Build docker | ||||||
run: docker build -t httpbin . | ||||||
- name: Run docker | ||||||
run: docker run -d -p 8081:80 httpbin | ||||||
- name: tests | ||||||
run: composer test |
This file was deleted.
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.
(I contribute to this lib via this repo and not my fork. So there is no need to trigger the workflow twice)