diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..2363cf5 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,31 @@ +name: Linting & Static Analysis +on: [push, pull_request] +jobs: + build: + strategy: + fail-fast: false + matrix: + operating-system: [ubuntu-latest] + php: ["8.2"] + dependencies: ["highest"] + runs-on: ${{ matrix.operating-system }} + + steps: + - name: Checkout code + uses: actions/checkout@v6 + + - name: Setup PHP and extensions + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + + - name: Install and cache Composer dependencies + uses: ramsey/composer-install@v4 + with: + dependency-versions: ${{ matrix.dependencies }} + + - name: Run linter + run: make lint + + - name: Run static analysis + run: make static diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 7f9f8f3..0f4ef2e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -6,7 +6,7 @@ jobs: fail-fast: false matrix: operating-system: [ubuntu-latest] - php: ["8.0", "8.1", "8.2", "8.3", "8.4", "8.5"] + php: ["8.0", "8.1", "8.2", "8.3", "8.4", "8.5", "8.6"] dependencies: ["highest"] runs-on: ${{ matrix.operating-system }} @@ -26,15 +26,9 @@ jobs: with: dependency-versions: ${{ matrix.dependencies }} - - name: Run linter - run: make lint - - name: Run unit tests run: make unit - - name: Run static analysis - run: make static - - name: Upload coverage uses: codecov/codecov-action@v6 with: