-
Notifications
You must be signed in to change notification settings - Fork 46
Replace Travis CI with Github Actions #91
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
Merged
Merged
Changes from all commits
Commits
Show all changes
85 commits
Select commit
Hold shift + click to select a range
1b6a4aa
Add first run of replacing Travis CI
nathangavin 75060e4
Add composer update
nathangavin ef546ed
Clone config file and update environment
nathangavin 41178cc
set up apache and php-fpm
nathangavin d5936dd
Replace obselete package
nathangavin 4ce5eaf
Add name to step
nathangavin dc7538a
Replace method of retrieving php version
nathangavin 6cb0846
Test env
nathangavin 01bda5c
Test env
nathangavin 50ae579
Updated with new env structure
nathangavin 1c119c8
Test env
nathangavin 4afa1d4
Test env
nathangavin d9a1068
Test env
nathangavin becd4e7
Test env
nathangavin b0c8000
remove default file config step
nathangavin 6f2a167
remove test
nathangavin 34f2361
add print debugging
nathangavin 2fd344a
replace fastcgi with fcgid
nathangavin ac71c40
Fix test bug regarding URL path
nathangavin b80404a
Add print log to track URL
nathangavin 4e729a8
Get PHPUnit version
nathangavin 011b2cf
Update PHPUnit
nathangavin b1833d9
Add composer update flag
nathangavin 5f9a83d
Revert phpunit change
nathangavin a1da689
Move apache restart
nathangavin b5b5f8e
See apache status
nathangavin face190
Add apache config
nathangavin 94524f2
add pwd
nathangavin c27620e
ad pwd to travis
nathangavin d612a3c
only 5.6
nathangavin 16af201
show error logs
nathangavin 6acb270
add fastcgi back
nathangavin 05e4355
add fastcgi back
nathangavin 1003d99
replace everything
nathangavin c80e1e1
fix port
nathangavin 078f261
fix path
nathangavin 110cc12
github workspace
nathangavin d211d89
8080
nathangavin 239ce11
8080 2
nathangavin 679ceaf
remove ipv6 stuff
nathangavin e4456fb
added PHP versions
nathangavin ac22a49
remove var_dump
nathangavin de01d56
Fix broken test
nathangavin a8cbe38
removed some travis CI references
nathangavin 035304a
fix broken test
nathangavin 3c162c7
remove travis CI files
nathangavin 4296df8
added PHP versions and phpcs
nathangavin ee4c47f
remove old php versions
nathangavin b9a120e
update composer version to greater than 7.2
nathangavin 664b274
added needed command
nathangavin 8f3a64d
add phpcs to composer
nathangavin 8c7fd3c
add matomo styling dependency
nathangavin 4d209a7
add required repo
nathangavin 6db4123
add composer rule for allow plugins
nathangavin 47f8027
exclude test file from PHPCS
nathangavin 1b62268
Fix PHPCS
nathangavin a7e902e
fix PHPCS and exclude test files
nathangavin 760662e
fix PHPCS
nathangavin 91434d8
fix phpcs
nathangavin 4583009
made minor changes, moved phpcs to separate action
nathangavin 43f0c9f
fix phpcs action
nathangavin 54877de
testing
nathangavin 4982034
update client code to new version
nathangavin bcc92dc
test
nathangavin c0eff85
test
nathangavin b222836
test
nathangavin 31d188e
updating tests
nathangavin 18d719c
fix test bug
nathangavin 9f9aa69
update tests
nathangavin 7e84d4c
test config file
nathangavin 75de0f9
testing theory
nathangavin 8c71d7e
test
nathangavin f1a0cad
testing
nathangavin 97b781e
fix config path
nathangavin 8db5b15
update path
nathangavin 5ff488a
revert path
nathangavin 2471f15
update to new guzzle code
nathangavin 6f5e046
Change assertion for file assertion
caddoo 0942d6a
Change tests to not expect exceptions
caddoo 7b77b90
Remove Vagrantfile
caddoo 845dc47
Try run on PHP server
caddoo 8ce8c31
Revert "Try run on PHP server"
caddoo d0b6979
Pin action to specific commit
caddoo 7e729a9
remove test
nathangavin 53971f8
fix phpunit version requirement
sgiehl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| <?php | ||
|
|
||
| $MATOMO_URL = 'http://localhost:8080/tests/server/'; | ||
|
|
||
| $PROXY_URL = 'http://proxy:8080/'; | ||
|
|
||
| $TOKEN_AUTH = 'xyz'; | ||
|
|
||
| $timeout = 5; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| name: PHPUnit | ||
|
|
||
| on: pull_request | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| build: | ||
| name: PHPUnit | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| php-version: ['7.2','7.3','7.4','8.0','8.1','8.4'] | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
| - name: Install PHP | ||
| uses: shivammathur/setup-php@v2 | ||
| with: | ||
| php-version: ${{ matrix.php-version }} | ||
| - name: Update package lists | ||
| run: sudo apt-get update | ||
| - name: Setup Apache | ||
| uses: thunder/apache-shiva-php-action@81bccd449b62dcf7dae2b33a21749fceeb2401e8 | ||
| with: | ||
| php-version: '${{ matrix.php-version }}' | ||
| site-directory: ${{ github.workspace }} | ||
| http-port: 8080 | ||
| - name: Copy config file | ||
| run: cp .github/config.php config.php | ||
| - name: Composer install | ||
| run: composer install | ||
| - name: PHPUnit / PHP ${{ matrix.php-version }} | ||
| run: composer test | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| name: PHPCS | ||
|
|
||
| on: pull_request | ||
|
|
||
| permissions: | ||
| actions: read | ||
| checks: read | ||
| contents: read | ||
| deployments: none | ||
| issues: read | ||
| packages: none | ||
| pull-requests: read | ||
| repository-projects: none | ||
| security-events: none | ||
| statuses: read | ||
|
|
||
| jobs: | ||
| phpcs: | ||
| name: PHPCS | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| lfs: false | ||
| persist-credentials: false | ||
| - name: Setup PHP | ||
| uses: shivammathur/setup-php@v2 | ||
| with: | ||
| php-version: '7.2' | ||
| tools: cs2pr | ||
| - name: Install dependencies | ||
| run: composer install | ||
| - name: Check PHP code styles | ||
| id: phpcs | ||
| run: ./vendor/bin/phpcs --report-full --report-checkstyle=./phpcs-report.xml | ||
| - name: Show PHPCS results in PR | ||
| if: ${{ always() && steps.phpcs.outcome == 'failure' }} | ||
| run: cs2pr ./phpcs-report.xml |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Is this required for any specific reason? Just wondering if we could safe the time if it's not needed.