Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 82 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
name: CI

on:
push:
branches: [main, master]
pull_request:

# GitHub Pages (nur deploy-pages-Job)
permissions:
contents: read
pages: write
id-token: write

concurrency:
group: pages-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false

jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: ['8.3', '8.4']

name: PHPUnit (PHP ${{ matrix.php }})

steps:
- uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, mbstring, xml, zip
coverage: none

- name: Install Composer dependencies
run: composer update --prefer-dist --no-interaction --no-progress

- name: Run PHPUnit
run: vendor/bin/phpunit

docs:
runs-on: ubuntu-latest
name: MkDocs build

steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Install MkDocs
run: pip install -r docs/requirements.txt

- name: Build documentation
env:
NO_MKDOCS_2_WARNING: '1'
run: mkdocs build --strict

- name: Upload Pages artifact
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master')
uses: actions/upload-pages-artifact@v4
with:
path: site

deploy-pages:
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master')
needs: docs
runs-on: ubuntu-latest
name: Deploy to GitHub Pages

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
site/
/vendor/
/.phpunit.cache/
16 changes: 16 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Read the Docs configuration
# https://docs.readthedocs.io/en/stable/config-file/v2.html

version: 2

build:
os: ubuntu-22.04
tools:
python: "3.12"

mkdocs:
configuration: packages/Exporter/mkdocs.yml

python:
install:
- requirements: packages/Exporter/docs/requirements.txt
Loading
Loading