diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..884d844 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,28 @@ +name: Test + +on: + pull_request: + branches: ["main"] + push: + branches: ["main"] + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + php_version: + - 7.4 + - 8.0 + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Install + uses: php-actions/composer@v5 + with: + php_version: ${{ matrix.php_version }} + - name: Test + uses: php-actions/composer@v5 + with: + php_version: ${{ matrix.php_version }} + command: test