forked from phpbb/phpbb-translation-validator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request phpbb#73 from battye/issue/72
Migrate Travis CI to GitHub Actions
- Loading branch information
Showing
3 changed files
with
33 additions
and
20 deletions.
There are no files selected for viewing
This file contains 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,29 @@ | ||
# .github/workflows/phpunit.yaml | ||
name: phpunit | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
php: ['7.0', '7.1', '7.2', '7.3', '7.4'] | ||
|
||
name: PHP ${{ matrix.php }} tests | ||
steps: | ||
- run: echo "This job for ${{ github.ref }} was automatically triggered by a ${{ github.event_name }} event on ${{ runner.os }}." | ||
|
||
# Basically git clone | ||
- uses: actions/checkout@v2 | ||
|
||
# Use PHP of specific version | ||
- uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
coverage: none # disable xdebug, pcov | ||
|
||
# If we use two steps like this, we can better see if composer or the test failed | ||
- run: composer install --dev --no-interaction --prefer-source | ||
- run: vendor/phpunit/phpunit/phpunit | ||
- run: echo "This job's status is ${{ job.status }}." |
This file was deleted.
Oops, something went wrong.
This file contains 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