From d19dff92182567e1e1d7f2f41aa694cec8d8336e Mon Sep 17 00:00:00 2001 From: Salvatore Date: Thu, 22 Aug 2024 02:09:44 +0200 Subject: [PATCH] Created unit test github workflow --- .github/workflows/test.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..322e6be --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,27 @@ +name: Test + +on: push + +jobs: + test: + name: "PHPUnit (PHP ${{ matrix.php-versions }})" + runs-on: ubuntu-latest + + strategy: + matrix: + php-versions: ["8.1", "8.2", "8.3"] + + steps: + - name: Checkout Code + uses: actions/checkout@v2 + + - name: Install PHP + uses: shivammathur/setup-php@v2 + with: + php-version: "${{ matrix.php-versions }}" + + - name: Install Composer + run: composer update --no-progress --no-suggest --prefer-dist --optimize-autoloader + + - name: Run Tests + run: composer run-script test \ No newline at end of file