Skip to content

Code quality maintenance, fixes and general improvements #228

Code quality maintenance, fixes and general improvements

Code quality maintenance, fixes and general improvements #228

Workflow file for this run

name: Lint, test and analyse
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
linting:
runs-on: ubuntu-latest
name: Linting
steps:
- name: Setup Docker buildx
uses: docker/setup-buildx-action@v2
- uses: actions/checkout@v4
- name: Build Docker image
id: build-and-push
uses: docker/build-push-action@v4
with:
context: "{{defaultContext}}"
push: false
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Run linting
run: docker compose run --rm actions-tester composer test:lint
testing:
runs-on: ubuntu-latest
name: Testing
steps:
- name: Setup Docker buildx
uses: docker/setup-buildx-action@v2
- uses: actions/checkout@v4
- name: Build Docker image
id: build-and-push
uses: docker/build-push-action@v4
with:
context: "{{defaultContext}}"
push: false
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Run testing
run: docker compose run --rm actions-tester composer test:phpunit
analysis:
runs-on: ubuntu-latest
name: Analysis
steps:
- name: Setup Docker buildx
uses: docker/setup-buildx-action@v2
- uses: actions/checkout@v4
- name: Build Docker image
id: build-and-push
uses: docker/build-push-action@v4
with:
context: "{{defaultContext}}"
push: false
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Run analysis
run: docker compose run --rm actions-tester composer test:phpstan
mess-detect:
runs-on: ubuntu-latest
name: Mess detector
steps:
- name: Setup Docker buildx
uses: docker/setup-buildx-action@v2
- uses: actions/checkout@v4
- name: Build Docker image
id: build-and-push
uses: docker/build-push-action@v4
with:
context: "{{defaultContext}}"
push: false
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Run mess detector
run: docker compose run --rm actions-tester composer test:phpmd
doc-check:
runs-on: ubuntu-latest
name: Documentation check
steps:
- name: Setup Docker buildx
uses: docker/setup-buildx-action@v2
- uses: actions/checkout@v4
- name: Build Docker image
id: build-and-push
uses: docker/build-push-action@v4
with:
context: "{{defaultContext}}"
push: false
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Run doc check
run: docker compose run --rm actions-tester composer test:docs