Skip to content

Automatic github actions updates. #5291

Automatic github actions updates.

Automatic github actions updates. #5291

Workflow file for this run

name: Tests
on:
# Trigger analysis when pushing in master or pull requests, and when creating
# a pull request.
push:
branches:
- master
pull_request:
types: [ opened, synchronize, reopened ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache composer dependencies
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install dependencies
run: docker-compose run --rm composer install --no-progress --no-suggest --prefer-dist --optimize-autoloader
- run: make tests
- run: make psalm
- run: make rector-dry
- run: make phpstan
- run: make ecs-dry
- name: fix code coverage paths
working-directory: ./tests/_output
run: |
sed -i 's/\/opt\/php-version-audit\//\/github\/workspace\//g' test-results.xml
sed -i 's/\/opt\/php-version-audit\//\/github\/workspace\//g' coverage.xml
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}