Skip to content

Commit

Permalink
Update CI to run without docker on Github CI (#254)
Browse files Browse the repository at this point in the history
* Fix CI for php 8.3 (#253)

* Remove all docker related files
  • Loading branch information
mateusjunges authored Feb 17, 2024
1 parent 2e7f414 commit cfe3234
Show file tree
Hide file tree
Showing 16 changed files with 32 additions and 720 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/run-tests-9.yml

This file was deleted.

46 changes: 31 additions & 15 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,39 @@
name: Continuous Integration

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
on: ['push', 'pull_request']

jobs:
run-tests:
runs-on: ubuntu-latest
ci:
runs-on: ubuntu-22.04

strategy:
matrix:
php: ["8.2"]
librdkafka: [ v1.8.2]
extrdkafka: [6.0.0]
laravel: [10]
php: [8.3, 8.2]
laravel: [10.*]
dependency-version: [prefer-stable]
include:
- laravel: 10.*
testbench: 8.*

name: CI - PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} - Testbench ${{ matrix.testbench }} (${{ matrix.dependency-version }})

steps:
- uses: actions/checkout@v2
- name: Test ${{ matrix.php }}-${{ matrix.librdkafka }}-${{ matrix.extrdkafka }}-${{ matrix.laravel }}
run:
make version-test-10-${{ matrix.php }}-${{ matrix.librdkafka }}-${{ matrix.extrdkafka }}-${{ matrix.laravel }}

- name: Checkout
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: mbstring, zip, rdkafka
tools: prestissimo
coverage: pcov

- name: Install Composer dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --no-interaction --prefer-dist --no-suggest
- name: PHPUnit Testing
run: vendor/bin/phpunit
58 changes: 0 additions & 58 deletions Makefile

This file was deleted.

66 changes: 0 additions & 66 deletions build/composer-files/composer.json-10

This file was deleted.

66 changes: 0 additions & 66 deletions build/composer-files/composer.json-9

This file was deleted.

40 changes: 0 additions & 40 deletions build/laravel-kernels/kernel.php.stub

This file was deleted.

31 changes: 0 additions & 31 deletions build/test/Dockerfile

This file was deleted.

2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "library",
"require": {
"php": "^8.2|^8.3",
"ext-rdkafka": "^5.0|^6.0",
"ext-rdkafka": "^6.0",
"monolog/monolog": "^3.4",
"mateusjunges/avro-serde-php": "^3.0",
"illuminate/support": "^9.0|^10.0",
Expand Down
25 changes: 0 additions & 25 deletions dev/Dockerfile

This file was deleted.

Loading

0 comments on commit cfe3234

Please sign in to comment.