Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Qodana #2

Draft
wants to merge 30 commits into
base: 8.x
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
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
35 changes: 35 additions & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: PHP

on:
push:
paths:
- .github/workflows/php.yml
pull_request:

jobs:
phpunit:
runs-on: ubuntu-latest
timeout-minutes: 5

steps:
- uses: actions/checkout@v2

- uses: shivammathur/setup-php@15c43e89cdef867065b0213be354c2841860869e
with:
php-version: '8.0'
- run: composer validate --strict
- run: composer install --prefer-dist --no-progress

- run: ./vendor/bin/phpunit --log-junit log.xml
- run: |
git add -N .
git diff --name-only
- run: ls -la
- uses: EnricoMi/publish-unit-test-result-action@v1
with:
files: log.xml
- uses: dorny/test-reporter@v1
with:
name: test-reporter
path: log.xml
reporter: java-junit
49 changes: 49 additions & 0 deletions .github/workflows/qodana.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Qodana

on:
push:
branches: [ qodana ]
paths:
- .github/workflows/qodana.yml
pull_request:
types: [ opened, synchronize ]
branches: [ qodana ]

jobs:
qodana:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- run: composer install
- name: Qodana - Code Inspection
uses: JetBrains/qodana-action@v1.0-eap
with:
report-dir: docs
- run: ls -l
- run: ls -l
working-directory: qodana
- run: ls -l
working-directory: docs
- name: Count changes
id: changes
run: |
git add -N docs
echo "::set-output name=count::$(git diff --name-only docs | wc -l)"
- run: echo ${{ steps.changes.outputs.count }}
- name: Deploy to GitHub Pages
run: |
git config user.name github-actions
git config user.email github-actions@github.com
git add docs
git commit -m "Qodana report"
git push
if: steps.changes.outputs.count > 0
- uses: actions/upload-artifact@v2
with:
name: result
path: qodana
- uses: actions/upload-artifact@v2
with:
name: report
path: docs
Loading