Skip to content

Add options to pagination helper #883

Add options to pagination helper

Add options to pagination helper #883

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the develop branch
push:
branches: [ develop ]
pull_request:
branches: [ develop ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
run:
name: PHP ${{ matrix.php-versions }}
runs-on: ubuntu-20.04
strategy:
matrix:
php-versions: ['7.4', '8.0', '8.1', '8.2', '8.3']
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
ini-values: mysqli.default_socket=/var/run/mysqld/mysqld.sock
tools: composer:v1
env:
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: 14
cache: 'npm'
- name: Get composer cache directory
id: composer-cache
run: echo "CI_COMPOSER_CACHE_DIR=$(composer config cache-files-dir)" >> $GITHUB_ENV
- name: Cache Composer dependencies
uses: actions/cache@v3
with:
path: ${{ env.CI_COMPOSER_CACHE_DIR }}
key: composer-${{ hashFiles('**/composer.lock') }}
restore-keys: composer-
- name: Cache build caches
uses: actions/cache@v3
with:
path: ./build/cache
key: build-cache-${{ github.sha }}
restore-keys: build-cache-
- name: Start MySQL
run: sudo systemctl start mysql.service
- name: Install Node dependencies
run: npm install
- name: Gulp init
run: npx gulp init
- name: Set up database
run: |
mysql -e "create database IF NOT EXISTS omeka_test;" -uroot -proot
sed -i 's/^host.*/host = "localhost"/' application/test/config/database.ini
sed -i 's/^user.*/user = "root"/' application/test/config/database.ini
sed -i 's/^dbname.*/dbname = "omeka_test"/' application/test/config/database.ini
sed -i 's/^password.*/password = "root"/' application/test/config/database.ini
- name: Run tests
run: npx gulp test --continue
env:
PHP_CS_FIXER_IGNORE_ENV: 1