chore: prep 35 for release #163
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: build | |
| on: [push, pull_request] | |
| jobs: | |
| docker-lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: hadolint/hadolint-action@v3.1.0 | |
| sh-checker: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: luizm/action-sh-checker@master | |
| env: | |
| SHFMT_OPTS: -i 4 -d | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| php_version: ['8.1', '8.2', '8.3', '8.4'] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build Docker image | |
| run: docker build -t nginx-php:${{ matrix.php_version }} --build-arg PHP_VERSION=${{ matrix.php_version }} . | |
| - name: Run Docker image | |
| run: docker run -d --name nginx-php -t nginx-php:${{ matrix.php_version }} | |
| - name: Test nginx config inside container | |
| run: | | |
| sleep 2 | |
| docker exec -t nginx-php nginx -T | |
| docker exec -t nginx-php php-fpm --test |