Skip to content

CI

CI #32

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-20.04
continue-on-error: ${{ matrix.experimental }}
strategy:
matrix:
include:
- mediawiki_version: '1.35'
chameleon_version: '4.1.0'
coverage: true
experimental: false
- mediawiki_version: '1.36'
chameleon_version: dev-master
coverage: false
experimental: true
env:
MW_VERSION: ${{ matrix.mediawiki_version }}
CHAMELEON_VERSION: ${{ matrix.chameleon_version }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Run tests
run: make ci
if: matrix.coverage == false
- name: Run tests with coverage
run: make ci-coverage
if: matrix.coverage == true
- name: Upload code coverage
uses: codecov/codecov-action@v2
with:
files: coverage/php/coverage.xml,coverage/js/clover.xml
if: matrix.coverage == true