Skip to content

docs(changelog): document issue #31 API self-call and auth-context fixes #182

docs(changelog): document issue #31 API self-call and auth-context fixes

docs(changelog): document issue #31 API self-call and auth-context fixes #182

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-24.04
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
include:
- mediawiki_version: '1.43'
smw_version: 6.0.1
php_version: 8.2
database_type: mysql
database_image: "mariadb:11.2"
coverage: false
experimental: false
- mediawiki_version: '1.43'
smw_version: 7.2.0
php_version: 8.2
database_type: mysql
database_image: "mariadb:11.2"
coverage: true
experimental: false
- mediawiki_version: '1.46'
smw_version: 7.2.0
php_version: 8.5
database_type: mysql
database_image: "mariadb:12.3"
coverage: false
experimental: false
env:
MW_VERSION: ${{ matrix.mediawiki_version }}
SMW_VERSION: ${{ matrix.smw_version }}
PHP_VERSION: ${{ matrix.php_version }}
DB_TYPE: ${{ matrix.database_type }}
DB_IMAGE: ${{ matrix.database_image }}
# Run JS tests only for the coverage entry: keeps the JS toolchain off the
# other matrix legs, matching how PHP coverage is scoped to one leg too.
NODE_JS: ${{ matrix.coverage && '1' || '' }}
steps:
- name: Checkout
uses: actions/checkout@v7
with:
submodules: recursive
- name: Update submodules
run: git submodule update --init --remote
- name: Run tests
run: make ci
if: matrix.coverage == false
- name: Run tests with coverage
run: mkdir -p build/coverage && make ci-coverage
if: matrix.coverage == true
- name: Upload code coverage
uses: codecov/codecov-action@v7
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: SemanticMediaWiki/KnowledgeGraph
files: build/coverage/php/coverage.xml,build/coverage/js/clover.xml
disable_search: true
if: matrix.coverage == true