Replace Doctrine Fixtures with Alice #1821
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Testing | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
- develop | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x] | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: '0' | |
- name: Set PHP version | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.1' | |
extensions: xdebug | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies | |
run: composer install --prefer-dist --no-progress --optimize-autoloader | |
env: | |
APP_ENV: test | |
- name: Install JS dependencies | |
run: yarn install | |
- name: Build JS dependencies | |
run: yarn build | |
- name: Run linter | |
run: composer lint | |
- name: Run unit/functional tests | |
run: composer test | |
- name: Warmup dev cache | |
run: php bin/console cache:warmup --env=dev | |
- name: Run static code analyser | |
run: composer analyse | |
- name: fix code coverage paths | |
working-directory: ./var/reports | |
run: | | |
sed -i 's/\/home\/runner\/work\/helpless-kiwi\/helpless-kiwi\//\/github\/workspace\//g' phpunit.xml | |
sed -i 's/\/home\/runner\/work\/helpless-kiwi\/helpless-kiwi\//\/github\/workspace\//g' phpunit.coverage.xml | |
- name: SonarCloud Scan | |
uses: sonarsource/sonarcloud-github-action@master | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} |