From 6cb7e2505530348406a26c4c55dbfb5133c7959f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Wed, 31 Jul 2024 11:48:18 +0000 Subject: [PATCH] Add GitHub Actions workflow --- .github/workflows/back-end.yml | 46 ++++++++++++++++++++++++++++++++++ .travis.yml | 13 ---------- README.md | 0 3 files changed, 46 insertions(+), 13 deletions(-) create mode 100644 .github/workflows/back-end.yml delete mode 100644 .travis.yml mode change 100755 => 100644 README.md diff --git a/.github/workflows/back-end.yml b/.github/workflows/back-end.yml new file mode 100644 index 0000000..721d67b --- /dev/null +++ b/.github/workflows/back-end.yml @@ -0,0 +1,46 @@ +# yaml-language-server: $schema=https://json.schemastore.org/github-workflow + +name: Integrate + +on: + pull_request: null + push: + branches: + - master + +jobs: + unit_tests: + name: Unit tests + strategy: + fail-fast: false + matrix: + php-version: + - 7.2 + - 7.3 + - 7.4 + - 8.0 + - 8.1 + - 8.2 + - 8.3 + runs-on: ubuntu-latest + steps: + - + name: Set up PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php-version }} + - + name: Setup problem matcher for PHPUnit + run: | + echo ::add-matcher::${{ runner.tool_cache }}/phpunit.json + - + name: Checkout repository + uses: actions/checkout@v4 + - + name: Install dependencies + uses: ramsey/composer-install@v3 + with: + dependency-versions: highest + - + name: Execute unit tests + run: composer exec -- phpunit diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 637596a..0000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -language: php - -php: - - 7.2 - - 7.3 - - 7.4 - - 8.0 - -before_script: - - curl -s http://getcomposer.org/installer | php - - php composer.phar install --dev - -script: phpunit diff --git a/README.md b/README.md old mode 100755 new mode 100644