diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..2f61f4d --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,28 @@ +name: Codeception tests + +on: [push] + +jobs: + build: + name: ${{matrix.operating-system}}, PHP ${{ matrix.php }} + + runs-on: ${{ matrix.operating-system }} + + strategy: + matrix: + operating-system: [ ubuntu-latest, ubuntu-20.04 ] + php: [ '8.0', '8.1', '8.4' ] + + steps: + - uses: actions/checkout@master + + - name: Setup PHP Action + uses: shivammathur/setup-php@master + with: + php-version: ${{ matrix.php }} + + - name: Install dependencies + run: composer install + + - name: Run tests + run: composer run test \ No newline at end of file diff --git a/composer.json b/composer.json index 9fcb215..382e0ef 100644 --- a/composer.json +++ b/composer.json @@ -24,5 +24,8 @@ "psr-4": { "Kodus\\SQLSplit\\": "src/" } + }, + "scripts": { + "test": "codecept run" } }