Skip to content

Document Flysystem visibility default #305

Document Flysystem visibility default

Document Flysystem visibility default #305

Workflow file for this run

name: Lint, test and analyse
on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]
permissions:
contents: read
jobs:
linting:
runs-on: ubuntu-latest
name: Linting
steps:
- name: Setup Docker buildx
uses: docker/setup-buildx-action@v3
- uses: actions/checkout@v4
- name: Build Docker image
id: build-and-push
uses: docker/build-push-action@v5
with:
context: "{{defaultContext}}"
target: builder
push: false
load: true
tags: mozart:latest
cache-from: type=gha,scope=default
cache-to: type=gha,mode=min,scope=default
- name: Run linting
run: docker compose run --rm actions-tester composer test:lint
unit-testing:
runs-on: ubuntu-latest
name: Unit Tests (PHP ${{ matrix.php-version }})
strategy:
matrix:
php-version: ['8.1', '8.2', '8.3', '8.4', '8.5']
steps:
- name: Setup Docker buildx
uses: docker/setup-buildx-action@v3
- uses: actions/checkout@v4
- name: Build Docker image
id: build-and-push
uses: docker/build-push-action@v5
with:
context: "{{defaultContext}}"
target: builder
push: false
load: true
tags: mozart:latest
build-args: |
PHP_VERSION=${{ matrix.php-version }}
cache-from: type=gha,scope=php-${{ matrix.php-version }}
cache-to: type=gha,mode=min,scope=php-${{ matrix.php-version }}
- name: Run unit tests
run: docker compose run --rm actions-tester composer test:unit
env:
PHP_VERSION: ${{ matrix.php-version }}
integration-testing:
runs-on: ubuntu-latest
name: Integration Tests (PHP ${{ matrix.php-version }})
strategy:
matrix:
php-version: ['8.1', '8.5']
steps:
- name: Setup Docker buildx
uses: docker/setup-buildx-action@v3
- uses: actions/checkout@v4
- name: Build Docker image
id: build-and-push
uses: docker/build-push-action@v5
with:
context: "{{defaultContext}}"
target: builder
push: false
load: true
tags: mozart:latest
build-args: |
PHP_VERSION=${{ matrix.php-version }}
cache-from: type=gha,scope=php-${{ matrix.php-version }}
cache-to: type=gha,mode=min,scope=php-${{ matrix.php-version }}
- name: Run integration tests
run: docker compose run --rm actions-tester composer test:integration
env:
PHP_VERSION: ${{ matrix.php-version }}
analysis:
runs-on: ubuntu-latest
name: Analysis
steps:
- name: Setup Docker buildx
uses: docker/setup-buildx-action@v3
- uses: actions/checkout@v4
- name: Build Docker image
id: build-and-push
uses: docker/build-push-action@v5
with:
context: "{{defaultContext}}"
target: builder
push: false
load: true
tags: mozart:latest
cache-from: type=gha,scope=default
cache-to: type=gha,mode=min,scope=default
- 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@v3
- uses: actions/checkout@v4
- name: Build Docker image
id: build-and-push
uses: docker/build-push-action@v5
with:
context: "{{defaultContext}}"
target: builder
push: false
load: true
tags: mozart:latest
cache-from: type=gha,scope=default
cache-to: type=gha,mode=min,scope=default
- 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@v3
- uses: actions/checkout@v4
- name: Build Docker image
id: build-and-push
uses: docker/build-push-action@v5
with:
context: "{{defaultContext}}"
target: builder
push: false
load: true
tags: mozart:latest
cache-from: type=gha,scope=default
cache-to: type=gha,mode=min,scope=default
- name: Run doc check
run: docker compose run --rm actions-tester composer test:docs