From 2a7d3a6c8f88692f8d29875c9cf89f23c06e0338 Mon Sep 17 00:00:00 2001 From: fberthereau Date: Thu, 9 Jan 2025 11:13:46 +0100 Subject: [PATCH] Remove travis and add github action --- .github/workflows/ci.yml | 34 ++++++++++++++++++++++++++++++++++ .travis.yml | 20 -------------------- 2 files changed, 34 insertions(+), 20 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..fb29d14 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,34 @@ +name: Application CI + +on: pull_request + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + tests: + runs-on: ubuntu-latest + name: PHP CI ${{ matrix.php-versions }} + strategy: + matrix: + php-versions: + - 8.3 + - 8.4 + + steps: + - name: Checkout sources + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php-versions }} + tools: composer:v2 + env: + runner: self-hosted + - name: Install dependencies + run: composer install --no-interaction --no-progress + - name: Run unit tests + run: ./bin/atoum -d tests/units diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 7903cf1..0000000 --- a/.travis.yml +++ /dev/null @@ -1,20 +0,0 @@ -language: php - -dist: "focal" - -php: - - 8.0 - - 8.1 - -env: - global: - - XDEBUG_MODE=coverage - -install: composer install -n - -script: - - bin/atoum -d tests/units - -branches: - only: - - master