Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
68 changes: 68 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -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 }}