Skip to content

Bump postcss from 8.4.12 to 8.4.31 #568

Bump postcss from 8.4.12 to 8.4.31

Bump postcss from 8.4.12 to 8.4.31 #568

Workflow file for this run

name: CI workflow
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
static_code_analysis:
name: Static code analysis
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.11
- run: pip install pre-commit
- run: pre-commit run --all-files --show-diff-on-failure
frontend:
name: Build frontend
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: yarn install
- run: yarn build
env:
NODE_ENV: production
backend:
name: Run tests
runs-on: ubuntu-latest
strategy:
matrix:
include:
- php_version: "5.6"
composer: "composer-v5.json"
- php_version: "7.4"
composer: "composer-v5.json"
- php_version: "8.0"
composer: "composer.json"
- php_version: "8.1"
composer: "composer.json"
- php_version: "8.2"
composer: "composer.json"
- php_version: "8.3"
composer: "composer.json"
env:
APP_DEBUG: true
DB_HOST: 127.0.0.1
DB_DATABASE: sklep_sms_test
DB_USERNAME: root
DB_PASSWORD: secret
COMPOSER: ${{ matrix.composer }}
services:
mysql:
image: mysql:5.5
env:
MYSQL_ALLOW_EMPTY_PASSWORD: false
MYSQL_DATABASE: sklep_sms_test
MYSQL_ROOT_PASSWORD: secret
ports:
- 3306/tcp
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- uses: actions/checkout@v3
- run: sudo /etc/init.d/mysql start
- name: Setup PHP ${{ matrix.php_version }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php_version }}
extensions: mysqli
coverage: xdebug
- uses: ramsey/composer-install@v2
with:
composer-options: "--optimize-autoloader"
# We need to remove psy/psysh cause otherwise rector doesn't work for php 5.6
- run: composer remove --dev psy/psysh
- name: Transpile to PHP ${{ matrix.php_version }}
run: |
docker run \
--rm \
--env PHP_VERSION=${{ matrix.php_version }} \
-v $(pwd):/project \
budziam/rector:0.12.23 \
process \
/project/includes \
/project/tests \
--config /project/rector.php
- run: php artisan test:setup
env:
DB_PORT: ${{ job.services.mysql.ports['3306'] }}
# - uses: mxschmitt/action-tmate@v3
- name: Run tests
run: ./vendor/bin/phpunit --coverage-clover clover.xml --testdox
env:
XDEBUG_MODE: coverage
DB_PORT: ${{ job.services.mysql.ports['3306'] }}
- name: Upload coverage results to Coveralls
run: |
if [[ ${{ matrix.php_version }} == 8.2 ]]; then
./vendor/bin/php-coveralls --coverage_clover clover.xml --json_path coveralls.json
fi
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}