Skip to content

Unit tests run through Github Action outputs message and errors to st… #38

Unit tests run through Github Action outputs message and errors to st…

Unit tests run through Github Action outputs message and errors to st… #38

Workflow file for this run

name: Unit tests
on:
push:
branches:
- master
- devel
- test
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Validate composer.json and composer.lock
run: composer validate
- name: Update packages
run: sudo apt-get update -y --quiet
- name: Install packages
run: sudo apt-get install -y --quiet ksh zsh clang xsltproc libxml2-utils
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v4
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: '${{ runner.os }}-php-
'
- name: Install dependencies
if: steps.composer-cache.outputs.cache-hit != 'true'
run: composer install --prefer-dist --no-progress --no-suggest
- name: Run test suite
run: make tests STDOUT=/dev/stdout STDERR=/dev/stderr