From 168b8534f9bbb2bbebb6c7a8e3ad9f1fcecf7661 Mon Sep 17 00:00:00 2001 From: Li Zhineng Date: Wed, 14 May 2025 13:34:02 +0800 Subject: add ci --- .github/workflows/test.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/test.yml (limited to '.github') diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..94269f5 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,32 @@ +name: Tests + +on: + push: + +jobs: + tests: + runs-on: ubuntu-latest + + strategy: + matrix: + php: ['8.4'] + dependency-version: [prefer-lowest, prefer-stable] + + name: PHP ${{ matrix.php }} - ${{ matrix.dependency-version }} + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + tools: composer:v2 + coverage: none + + - name: Install Dependencies + run: composer update --${{ matrix.dependency-version }} --no-interaction --no-progress --ansi + + - name: Run Tests + run: ./vendor/bin/phpunit -- cgit v1.2.3