Bump postcss from 8.4.29 to 8.4.30 #199
Workflow file for this run
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: CI | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
env: | |
EXTNAME: 'alfredoramos/share' | |
SNIFF: 1 | |
IMAGE_ICC: 1 | |
EPV: 1 | |
EXECUTABLE_FILES: 1 | |
PHPBB_BRANCH: 3.3.x | |
jobs: | |
basic-tests: | |
if: ${{ !contains(github.event.head_commit.message, 'skip ci') }} | |
name: php ${{ matrix.php-version }}, none none | |
runs-on: ubuntu-20.04 | |
env: | |
PHP_VERSION: ${{ matrix.php-version }} | |
strategy: | |
matrix: | |
php-version: ['7.1'] | |
steps: | |
- name: Checkout phpBB | |
uses: actions/checkout@v4 | |
with: | |
repository: phpbb/phpbb | |
ref: ${{ env.PHPBB_BRANCH }} | |
path: phpBB3 | |
- name: Checkout extension | |
uses: actions/checkout@v4 | |
with: | |
path: extension | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, mysqli, intl, gd, exif, iconv, pgsql | |
tools: composer:v2 | |
coverage: none | |
- name: Setup Composer | |
id: setup-composer | |
working-directory: phpBB3/phpBB | |
run: echo "cache-dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | |
- name: Setup cache | |
uses: actions/cache@v3 | |
with: | |
path: ${{ steps.setup-composer.outputs.cache-dir }} | |
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock', '**/composer.json') }} | |
restore-keys: | | |
${{ runner.os }}-composer- | |
- name: Setup environment for phpBB | |
working-directory: phpBB3 | |
run: .github/setup-phpbb.sh $DB $PHP_VERSION $NOTESTS | |
- name: Setup Node cache | |
uses: actions/cache@v3 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- name: Install Node dependencies | |
working-directory: extension | |
run: npm install | |
- name: Setup extension | |
working-directory: extension | |
run: | | |
chmod +x .github/setup-extension.sh | |
.github/setup-extension.sh $EXTNAME $NOTESTS | |
- name: Setup EPV | |
if: ${{ env.EPV == 1 }} | |
working-directory: phpBB3/phpBB | |
run: composer require -n --prefer-dist --no-progress phpbb/epv:dev-master | |
- name: Run code sniffer | |
if: ${{ env.SNIFF == 1 }} | |
working-directory: phpBB3 | |
run: .github/ext-sniff.sh $EXTNAME $NOTESTS | |
- name: Check image ICC profiles | |
if: ${{ env.IMAGE_ICC == 1 }} | |
working-directory: phpBB3 | |
run: .github/check-image-icc-profiles.sh | |
- name: Check executable files | |
if: ${{ env.EXECUTABLE_FILES == 1 }} | |
working-directory: phpBB3 | |
run: .github/ext-check-executable-files.sh ./ $EXTNAME | |
- name: Run EPV | |
if: ${{ env.EPV == 1 }} | |
working-directory: phpBB3 | |
run: phpBB/vendor/bin/EPV.php run --dir="phpBB/ext/$EXTNAME" | |
mysql-tests: | |
if: ${{ !contains(github.event.head_commit.message, 'skip ci') }} | |
name: php ${{ matrix.php-version }}, ${{ matrix.db-type }} ${{ matrix.db-version }} | |
runs-on: ubuntu-20.04 | |
services: | |
mysql: | |
image: ${{ (matrix.db-type == 'mysql' || matrix.db-type == 'mariadb') && matrix.db-type || 'mariadb' }}:${{ (matrix.db-type == 'mysql' || matrix.db-type == 'mariadb' && matrix.db-version != 'none') && matrix.db-version || 'latest' }} | |
env: | |
MYSQL_ALLOW_EMPTY_PASSWORD: yes | |
MYSQL_DATABASE: phpbb_tests | |
ports: | |
- 3306:3306 | |
options: >- | |
--health-cmd="mysqladmin ping" | |
--health-interval=10s | |
--health-timeout=5s | |
--health-retries=3 | |
env: | |
DB: ${{ matrix.db-type }} | |
MYISAM: 0 | |
PHP_VERSION: ${{ matrix.php-version }} | |
strategy: | |
matrix: | |
include: | |
- php-version: '7.1' | |
db-type: 'mysql' | |
db-version: '5.7' | |
- php-version: '7.1' | |
db-type: 'mariadb' | |
db-version: '10.5' | |
- php-version: '7.2' | |
db-type: 'mariadb' | |
db-version: '10.5' | |
- php-version: '7.3' | |
db-type: 'mariadb' | |
db-version: '10.5' | |
- php-version: '7.4' | |
db-type: 'mysql' | |
db-version: '8.0' | |
- php-version: '7.4' | |
db-type: 'mariadb' | |
db-version: '10.5' | |
- php-version: '8.0' | |
db-type: 'mariadb' | |
db-version: '10.5' | |
- php-version: '8.1' | |
db-type: 'mariadb' | |
db-version: '10.6' | |
steps: | |
- name: Checkout phpBB | |
uses: actions/checkout@v4 | |
with: | |
repository: phpbb/phpbb | |
ref: ${{ env.PHPBB_BRANCH }} | |
path: phpBB3 | |
- name: Checkout extension | |
uses: actions/checkout@v4 | |
with: | |
path: extension | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, mysqli, intl, gd, exif, iconv, pgsql | |
tools: composer:v2 | |
coverage: none | |
- name: Setup Composer | |
id: setup-composer | |
working-directory: phpBB3/phpBB | |
run: echo "cache-dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | |
- name: Setup cache | |
uses: actions/cache@v3 | |
with: | |
path: ${{ steps.setup-composer.outputs.cache-dir }} | |
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock', '**/composer.json') }} | |
restore-keys: | | |
${{ runner.os }}-composer- | |
- name: Setup environment for phpBB | |
working-directory: phpBB3 | |
run: .github/setup-phpbb.sh $DB $PHP_VERSION $NOTESTS | |
- name: Setup Node cache | |
uses: actions/cache@v3 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- name: Install Node dependencies | |
working-directory: extension | |
run: npm install | |
- name: Setup extension | |
working-directory: extension | |
run: | | |
chmod +x .github/setup-extension.sh | |
.github/setup-extension.sh $EXTNAME $NOTESTS | |
- name: Setup database | |
working-directory: phpBB3 | |
run: .github/setup-database.sh $DB $MYISAM | |
- name: Setup PHPUnit files | |
working-directory: phpBB3 | |
run: | | |
mkdir -p phpBB/ext/$EXTNAME/ci | |
cp -a .github/phpunit* phpBB/ext/$EXTNAME/ci/ | |
- name: Run unit tests | |
working-directory: phpBB3 | |
run: phpBB/vendor/bin/phpunit --configuration phpBB/ext/$EXTNAME/ci/phpunit-$DB-github.xml --bootstrap tests/bootstrap.php | |
postgresql-tests: | |
if: ${{ !contains(github.event.head_commit.message, 'skip ci') }} | |
name: php ${{ matrix.php-version }}, ${{ matrix.db-type }} ${{ matrix.db-version }} | |
runs-on: ubuntu-20.04 | |
services: | |
postgres: | |
image: ${{ (matrix.db-type == 'postgres') && matrix.db-type || 'postgres' }}:${{ (matrix.db-type == 'postgres' && matrix.db-version != 'none') && matrix.db-version || 'alpine' }} | |
env: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: postgres | |
ports: | |
- 5432:5432 | |
options: >- | |
-v /var/run/postgresql:/var/run/postgresql | |
--health-cmd="pg_isready" | |
--health-interval=10s | |
--health-timeout=5s | |
--health-retries=3 | |
env: | |
DB: ${{ matrix.db-type }} | |
MYISAM: 0 | |
PHP_VERSION: ${{ matrix.php-version }} | |
strategy: | |
matrix: | |
include: | |
- php-version: '7.1' | |
db-type: 'postgres' | |
db-version: '14-alpine' | |
- php-version: '8.2' | |
db-type: 'postgres' | |
db-version: '15-alpine' | |
steps: | |
- name: Checkout phpBB | |
uses: actions/checkout@v4 | |
with: | |
repository: phpbb/phpbb | |
ref: ${{ env.PHPBB_BRANCH }} | |
path: phpBB3 | |
- name: Checkout extension | |
uses: actions/checkout@v4 | |
with: | |
path: extension | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-version }} | |
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, mysqli, intl, gd, exif, iconv, pgsql | |
tools: composer:v2 | |
coverage: none | |
- name: Setup Composer | |
id: setup-composer | |
working-directory: phpBB3/phpBB | |
run: echo "cache-dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | |
- name: Setup cache | |
uses: actions/cache@v3 | |
with: | |
path: ${{ steps.setup-composer.outputs.cache-dir }} | |
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock', '**/composer.json') }} | |
restore-keys: | | |
${{ runner.os }}-composer- | |
- name: Setup environment for phpBB | |
working-directory: phpBB3 | |
run: .github/setup-phpbb.sh $DB $PHP_VERSION $NOTESTS | |
- name: Setup Node cache | |
uses: actions/cache@v3 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- name: Install Node dependencies | |
working-directory: extension | |
run: npm install | |
- name: Setup extension | |
working-directory: extension | |
run: | | |
chmod +x .github/setup-extension.sh | |
.github/setup-extension.sh $EXTNAME $NOTESTS | |
- name: Setup database | |
working-directory: phpBB3 | |
run: .github/setup-database.sh $DB $MYISAM | |
- name: Setup PHPUnit files | |
working-directory: phpBB3 | |
run: | | |
mkdir -p phpBB/ext/$EXTNAME/ci | |
cp -a .github/phpunit* phpBB/ext/$EXTNAME/ci/ | |
- name: Run unit tests | |
working-directory: phpBB3 | |
run: phpBB/vendor/bin/phpunit --configuration phpBB/ext/$EXTNAME/ci/phpunit-$DB-github.xml --bootstrap tests/bootstrap.php | |
lint: | |
if: ${{ !contains(github.event.head_commit.message, 'skip lint') }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout extension | |
uses: actions/checkout@v4 | |
with: | |
path: extension | |
- name: Setup Node cache | |
uses: actions/cache@v3 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- name: Install Node dependencies | |
working-directory: extension | |
run: npm install | |
- name: Test CSS | |
working-directory: extension | |
run: npm run lint-css |