Replace Travis with Github actions
Two workflows have been added,
* PHP build - Runs tests on version 7.2, 7.3, also runs phpcs
* Node.js build - Runs tests on version 8.x, 10.x, 12.x, also
runs ESLint
Bug: T218639
This commit is contained in:
22
.github/workflows/php.yml
vendored
Normal file
22
.github/workflows/php.yml
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
name: PHP build
|
||||
on:
|
||||
[pull_request, push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
php: [7.2, 7.3]
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Install dependencies
|
||||
run: composer install --prefer-dist --no-interaction --ansi
|
||||
|
||||
- name: Run tests
|
||||
run: php${{ matrix.php }} ./vendor/bin/phpunit tests/php/*
|
||||
|
||||
- name: Running phpcs
|
||||
run: composer run-script cs
|
||||
Reference in New Issue
Block a user