diff options
| author | Li Zhineng <[email protected]> | 2025-05-14 13:34:02 +0800 |
|---|---|---|
| committer | Li Zhineng <[email protected]> | 2025-05-14 13:34:02 +0800 |
| commit | 168b8534f9bbb2bbebb6c7a8e3ad9f1fcecf7661 (patch) | |
| tree | e53047980e9cc321429fb92c73fbb30684ca0857 | |
| parent | 17f40900120b195e5ce5ab7ef3e1881d9304294b (diff) | |
| download | vehicle-license-china-168b8534f9bbb2bbebb6c7a8e3ad9f1fcecf7661.tar.gz vehicle-license-china-168b8534f9bbb2bbebb6c7a8e3ad9f1fcecf7661.zip | |
add ci
| -rw-r--r-- | .github/workflows/test.yml | 32 |
1 files changed, 32 insertions, 0 deletions
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 |
