From 71a0415f6c871302556636b64d0d5646ea86a597 Mon Sep 17 00:00:00 2001 From: Jan Tvrdik Date: Sun, 20 Dec 2020 15:40:53 +0100 Subject: [PATCH] replace travis with github actions --- .github/workflows/qa.yaml | 32 ++++++++++++++++++++++++++++++++ .travis.yml | 14 -------------- README.md | 2 +- 3 files changed, 33 insertions(+), 15 deletions(-) create mode 100644 .github/workflows/qa.yaml delete mode 100644 .travis.yml diff --git a/.github/workflows/qa.yaml b/.github/workflows/qa.yaml new file mode 100644 index 0000000..08c6de1 --- /dev/null +++ b/.github/workflows/qa.yaml @@ -0,0 +1,32 @@ +name: QA + +on: + pull_request: + branches: + - master + + push: + branches: + - master + - v* + +jobs: + tests: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + php: ['7.1', '7.2', '7.3', '7.4', '8.0'] + + name: PHP ${{ matrix.php }} + + steps: + - uses: actions/checkout@v2 + - uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + extensions: json + coverage: none + + - run: composer install --no-interaction --no-progress + - run: vendor/bin/tester -C tests/cases diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 2a345a0..0000000 --- a/.travis.yml +++ /dev/null @@ -1,14 +0,0 @@ -language: php -php: - - 7.1 - - 7.2 - - 7.3 - -env: - - PHP_BIN=php - -before_script: - - composer install --no-interaction - -script: - - ./vendor/bin/tester -p $PHP_BIN -s ./tests/cases diff --git a/README.md b/README.md index a09fcf3..ab90b22 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ Nextras Secured Links ===================== -[![Build Status](https://travis-ci.org/nextras/secured-links.svg?branch=master)](https://travis-ci.org/nextras/secured-links) +[![Build Status](https://github.com/nextras/secured-links/workflows/QA/badge.svg?branch=master)](https://github.com/nextras/secured-links/actions?query=workflow%3AQA+branch%3Amaster) [![Downloads this Month](https://img.shields.io/packagist/dm/nextras/secured-links.svg?style=flat)](https://packagist.org/packages/nextras/secured-links) [![Stable Version](https://img.shields.io/packagist/v/nextras/secured-links.svg?style=flat)](https://packagist.org/packages/nextras/secured-links)