From 0b49f16f2500afc2537f901fbdb592125ba70452 Mon Sep 17 00:00:00 2001 From: Brendan Harris Date: Tue, 17 Dec 2024 11:35:49 +1100 Subject: [PATCH] Update CI.yml --- .github/workflows/CI.yml | 35 ++++++++++++++++++++++++++++++----- 1 file changed, 30 insertions(+), 5 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 2a5c290..7f7398e 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -3,9 +3,8 @@ on: push: branches: - main - tags: '*' + tags: ['*'] pull_request: - workflow_dispatch: concurrency: # Skip intermediate builds: always. # Cancel intermediate builds: only if it is a pull request build. @@ -19,9 +18,8 @@ jobs: fail-fast: false matrix: version: - - '1.10' - '1' - # - 'nightly' + - '1.10' os: - ubuntu-latest - macOS-latest @@ -37,7 +35,7 @@ jobs: with: version: ${{ matrix.version }} arch: ${{ matrix.arch }} - - uses: julia-actions/cache@v2 + - uses: julia-actions/cache@v1 - uses: julia-actions/julia-buildpkg@v1 - uses: julia-actions/julia-runtest@v1 - uses: julia-actions/julia-processcoverage@v1 @@ -46,3 +44,30 @@ jobs: files: lcov.info env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + docs: + name: Documentation + runs-on: ubuntu-latest + permissions: + contents: write + statuses: write + steps: + - uses: actions/checkout@v4 + - uses: julia-actions/setup-julia@v2 + with: + version: '1' + - name: Configure doc environment + run: | + julia --project=docs/ -e ' + using Pkg + Pkg.develop(PackageSpec(path=pwd())) + Pkg.instantiate()' + - uses: julia-actions/julia-buildpkg@v1 + - uses: julia-actions/julia-docdeploy@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - run: | + julia --project=docs -e ' + using Documenter: DocMeta, doctest + using Catch22 + DocMeta.setdocmeta!(Catch22, :DocTestSetup, :(using Catch22); recursive=true) + doctest(Catch22)'