Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/client_updater_server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2021-06-17 13:10:27 +0300
committerArthur Schiwon <blizzz@arthur-schiwon.de>2021-06-17 13:21:59 +0300
commit3fea9bbccc1422b0a1adae4a3754623a3aef4607 (patch)
tree6fc64b15618485609d8695bf42d723c01a9a0424
parenteb98d28b8c66398237d04ee31475d1f8b12764b8 (diff)
switch from travis to github actions
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
-rw-r--r--.github/workflows/phpunit.yml35
-rw-r--r--.travis.yml8
2 files changed, 35 insertions, 8 deletions
diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml
new file mode 100644
index 0000000..9203fae
--- /dev/null
+++ b/.github/workflows/phpunit.yml
@@ -0,0 +1,35 @@
+name: PHPUnit
+
+on:
+ pull_request:
+ push:
+ branches:
+ - master
+
+jobs:
+ php:
+ runs-on: ubuntu-latest
+
+ strategy:
+ # do not stop on another job's failure
+ fail-fast: false
+ matrix:
+ php-versions: ['7.2', '7.4', '8.0']
+
+ name: php${{ matrix.php-versions }}
+
+ steps:
+ - name: Set up php ${{ matrix.php-versions }}
+ uses: shivammathur/setup-php@v2
+ with:
+ php-version: ${{ matrix.php-versions }}
+ extensions: mbstring, iconv, fileinfo, intl
+ coverage: none
+
+ - name: Checkout server
+ uses: actions/checkout@v2
+
+ - name: Run unit tests
+ run: |
+ composer install
+ sh -c "cd tests/unit/ && ../../vendor/bin/phpunit ."
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 0225806..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,8 +0,0 @@
-sudo: false
-language: php
-php:
- - 7.0
-
-script:
- - composer install
- - sh -c "cd tests/unit/ && ../../vendor/bin/phpunit ."