Skip to content
Merged
Show file tree
Hide file tree
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
18 changes: 5 additions & 13 deletions .github/workflows/actionlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,15 @@ name: actionlint
on:
push:
branches:
- main
- main
paths:
- .github/workflows/**
- .github/workflows/**
pull_request:
branches:
- main
- main
paths:
- .github/workflows/**
- .github/workflows/**

jobs:
actionlint:
name: Lint GitHub Actions workflows
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v6

- name: Run actionlint
uses: rhysd/actionlint@v1.7.12
uses: openCoreEMR/github-workflows-public/.github/workflows/actionlint.yml@0.0.2
34 changes: 5 additions & 29 deletions .github/workflows/composer-normalize.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,38 +3,14 @@ name: Composer Normalize
on:
push:
branches:
- main
- main
pull_request:
branches:
- main
- main

jobs:
composer-normalize:
name: Normalize composer.json (check)
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v6

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
extensions: json, curl
coverage: none
tools: composer:v2

- name: Cache Composer dependencies
uses: actions/cache@v5
with:
path: vendor
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-

- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-interaction

- name: Normalize composer.json (check)
uses: openCoreEMR/github-workflows-public/.github/workflows/php-composer-script.yml@0.0.2
with:
name: Normalize composer.json (check)
run: composer normalize --dry-run
35 changes: 6 additions & 29 deletions .github/workflows/composer-require-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,38 +3,15 @@ name: Composer Require Checker
on:
push:
branches:
- main
- main
pull_request:
branches:
- main
- main

jobs:
composer-require-checker:
name: Run Composer Require Checker
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v6

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
extensions: json, curl
coverage: none
tools: composer:v2, composer-require-checker

- name: Cache Composer dependencies
uses: actions/cache@v5
with:
path: vendor
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-

- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-interaction

- name: Run Composer Require Checker
uses: openCoreEMR/github-workflows-public/.github/workflows/php-composer-script.yml@0.0.2
with:
name: Run Composer Require Checker
run: composer-require-checker check --config-file=.composer-require-checker.json
php-tools: 'composer:v2, composer-require-checker'
24 changes: 6 additions & 18 deletions .github/workflows/composer-validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,15 @@ name: Composer Validate
on:
push:
branches:
- main
- main
pull_request:
branches:
- main
- main

jobs:
composer-validate:
name: Validate composer.json
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v6

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
extensions: json, curl
coverage: none
tools: composer:v2

- name: Validate composer.json
uses: openCoreEMR/github-workflows-public/.github/workflows/php-composer-script.yml@0.0.2
with:
name: Validate composer.json
run: composer validate --strict
install-deps: false
29 changes: 1 addition & 28 deletions .github/workflows/conventional-pr-title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,6 @@ on:
pull_request:
types: [opened, edited, synchronize, reopened]

permissions:
pull-requests: read

jobs:
conventional-pr-title:
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
types: |
feat
fix
docs
style
refactor
perf
test
build
ci
chore
revert
deps
requireScope: false
subjectPattern: ^(?![A-Z]).+$
subjectPatternError: |
The subject "{subject}" found in the pull request title "{title}"
didn't match the configured pattern. Please ensure that the subject
doesn't start with an uppercase character.
uses: openCoreEMR/github-workflows-public/.github/workflows/conventional-pr-title.yml@0.0.2
24 changes: 6 additions & 18 deletions .github/workflows/php-syntax-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,15 @@ name: PHP Syntax Check
on:
push:
branches:
- main
- main
pull_request:
branches:
- main
- main

jobs:
php-syntax-check:
name: PHP Syntax Check
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v6

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
extensions: json, curl
coverage: none
tools: composer:v2

- name: PHP Syntax Check
uses: openCoreEMR/github-workflows-public/.github/workflows/php-composer-script.yml@0.0.2
with:
name: PHP Syntax Check
run: composer php-lint
install-deps: false
34 changes: 5 additions & 29 deletions .github/workflows/phpcs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,38 +3,14 @@ name: PHP CodeSniffer
on:
push:
branches:
- main
- main
pull_request:
branches:
- main
- main

jobs:
phpcs:
name: Run PHP CodeSniffer
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v6

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
extensions: json, curl
coverage: none
tools: composer:v2

- name: Cache Composer dependencies
uses: actions/cache@v5
with:
path: vendor
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-

- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-interaction

- name: Run PHP CodeSniffer
uses: openCoreEMR/github-workflows-public/.github/workflows/php-composer-script.yml@0.0.2
with:
name: Run PHP CodeSniffer
run: composer phpcs
34 changes: 5 additions & 29 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,38 +3,14 @@ name: PHPStan
on:
push:
branches:
- main
- main
pull_request:
branches:
- main
- main

jobs:
phpstan:
name: Run PHPStan
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v6

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
extensions: json, curl
coverage: none
tools: composer:v2

- name: Cache Composer dependencies
uses: actions/cache@v5
with:
path: vendor
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-

- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-interaction

- name: Run PHPStan
uses: openCoreEMR/github-workflows-public/.github/workflows/php-composer-script.yml@0.0.2
with:
name: Run PHPStan
run: composer phpstan
34 changes: 5 additions & 29 deletions .github/workflows/rector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,38 +3,14 @@ name: Rector
on:
push:
branches:
- main
- main
pull_request:
branches:
- main
- main

jobs:
rector:
name: Run Rector (dry-run)
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v6

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
extensions: json, curl
coverage: none
tools: composer:v2

- name: Cache Composer dependencies
uses: actions/cache@v5
with:
path: vendor
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-

- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-interaction

- name: Run Rector (dry-run)
uses: openCoreEMR/github-workflows-public/.github/workflows/php-composer-script.yml@0.0.2
with:
name: Run Rector (dry-run)
run: composer rector
Loading