From 233c0e40aa9ef7d914a1352cdc0801e316651484 Mon Sep 17 00:00:00 2001 From: ocReaper Date: Tue, 22 Jul 2025 10:45:46 +0200 Subject: [PATCH] feat(workflows): introduce pr checks --- .github/workflows/check.yml | 68 +++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 .github/workflows/check.yml diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 0000000..e83fef3 --- /dev/null +++ b/.github/workflows/check.yml @@ -0,0 +1,68 @@ +name: PR Title and Docker Build Check + +on: + pull_request_target: + types: + - opened + - edited + - reopened + +jobs: + check-pr-title: + name: Check PR Title Format + runs-on: ubuntu-latest + permissions: + pull-requests: read + steps: + - uses: amannn/action-semantic-pull-request@v5 + with: + types: | + feat + fix + chore + docs + refactor + scopes: | + 8.0 + 8.1 + 8.2 + 8.3 + 8.4 + docs + workflows + requireScope: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + docker: + runs-on: ubuntu-latest + + strategy: + matrix: + include: + - tag: "8.4" + php: "8.4" + - tag: "8.3" + php: "8.3" + - tag: "8.2" + php: "8.2" + - tag: "8.1" + php: "8.1" + - tag: "8.0" + php: "8.0" + + steps: + - uses: actions/checkout@v3 + + - name: Login to DockerHub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Build and push + uses: docker/build-push-action@v6 + with: + push: false + context: ${{ matrix.php }} + tags: ocreaper/php-nvm:${{ matrix.tag }}