Skip to content

First attempt at GitHub workflows to run PHPUnit on commit. #1

First attempt at GitHub workflows to run PHPUnit on commit.

First attempt at GitHub workflows to run PHPUnit on commit. #1

Workflow file for this run

name: Run PHPUnit
on:
push:
branches: [ "9.x" ]
pull_request:
branches: [ "9.x" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: Run tests
run: php web/core/scripts/run-tests.sh --sqlite ../test.sqlite --suppress-deprecations --color --url https://web omnipedia