Skip to content

Commit

Permalink
reuse workflows for coding standards
Browse files Browse the repository at this point in the history
  • Loading branch information
othillo committed Jun 19, 2023
1 parent 87d96d9 commit 3e5a275
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
18 changes: 3 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,21 +43,9 @@ jobs:
- name: "Run tests"
run: "make test"

coding-standards:
name: "Coding standards"
runs-on: "ubuntu-20.04"
steps:
- name: "Checkout"
uses: "actions/checkout@v3"
- name: "Install PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "8.0"
coverage: "none"
- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v2"
- name: "Check coding standards"
run: "make php-cs-fixer-ci"
check-coding-standards:
name: "Check coding standards"
uses: "broadway/github-actions/.github/workflows/check-coding-standards.yml@main"

static-analysis:
name: "Static analysis"
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/fix-coding-standards-violations.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: "Fix coding standards violations"

on:
push:
branches:
- "master"
schedule:
- cron: "37 13 * * 2"
workflow_dispatch:

jobs:
check-coding-standards:
uses: "broadway/github-actions/.github/workflows/fix-coding-standards-violations.yml@main"

0 comments on commit 3e5a275

Please sign in to comment.