diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..96e70c9 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,4 @@ +# Each line is a file pattern followed by one or more owners. + +# CI code should be reviewed by an architect +/.github/ @fulll/chapter-validators-client @fulll/chapter-validators-plateforme \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..5f07a98 --- /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.0 + - 8.1 + - 8.2 + - 8.3 + + 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 + - name: Install dependencies + run: composer install --no-interaction --no-progress + - name: Run unit tests + run: vendor/bin/atoum diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 4444064..0000000 --- a/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -dist: trusty -language: php - -php: - - 7.2 - - 7.4 - - 8.0 - - 8.1 - - 8.2 - -before_install: - - phpenv config-rm xdebug.ini - -before_script: - - composer self-update || true - - composer install --dev --prefer-dist - -script: - - vendor/bin/atoum