Merge pull request #1 from tinify/master #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Check and Test | |
| on: | |
| push: | |
| branches: | |
| - '**' | |
| pull_request: | |
| branches: | |
| - '**' | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| continue-on-error: true # We haven't solved all formatting issues yet. | |
| strategy: | |
| matrix: | |
| php: ['7.4'] | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v3 | |
| - name: Setup | |
| uses: ./.github/actions/setup | |
| with: | |
| php: ${{ matrix.php }} | |
| - name: PHPCS | |
| run: ./bin/check-style | |
| test: | |
| needs: check | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| strategy: | |
| matrix: | |
| php: ['7.4'] | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v3 | |
| - name: Setup | |
| uses: ./.github/actions/setup | |
| with: | |
| php: ${{ matrix.php }} | |
| - name: PHPUnit | |
| run: ./bin/unit-tests |