diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..36e2a22 --- /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 diff --git a/composer.json b/composer.json index 671b990..900b08f 100644 --- a/composer.json +++ b/composer.json @@ -27,5 +27,8 @@ "psr-4": { "Kodus\\Test\\Unit\\": "tests/unit/" } + }, + "scripts": { + "test": "codecept run" } }