Skip to content
# This action is used for DrevOps maintenance. It will not be used in the scaffolded project.
name: DrevOps - Test docs
on:
push:
tags:
- '**'
branches:
- '**'
jobs:
drevops-test-docs:
runs-on: ubuntu-latest
container:
image: drevops/ci-runner:latest
env:
# Prevent GitHub overriding the Docker config.
DOCKER_CONFIG: /root/.docker
DREVOPS_DEV_TEST_COVERAGE_DIR: /tmp/.drevops-coverage-html
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Adjust git config to allow running git-related tests
run: git config --global safe.directory '*'
- name: Create network
run: docker network create amazeeio-network
- name: Build site
working-directory: .drevops/docs
run: ahoy build
- name: Check spelling
working-directory: .drevops/docs
run: ahoy lint
- name: Run tests
working-directory: .drevops/docs
run: ahoy test
- name: Upload coverage report as an artifact
uses: actions/upload-artifact@v4
with:
name: ${{github.job}}-code-coverage-report
path: /tmp/.drevops-coverage-html
- name: Upload coverage report to Codecov
uses: codecov/codecov-action@v4
with:
directory: /tmp/.drevops-coverage-html
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}