diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 20325f9..1c9d793 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -17,12 +17,31 @@ concurrency: cancel-in-progress: false jobs: + run_tests: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v6 + + - uses: julia-actions/setup-julia@v3 + with: + version: "1" + + - uses: julia-actions/cache@v3 + + - name: Instantiate package environment + run: julia --project=. -e 'using Pkg; Pkg.instantiate()' + + - name: Run tests + run: julia --project=. -e 'using Pkg; Pkg.test()' + build: runs-on: ubuntu-latest + steps: - uses: actions/checkout@v6 - - uses: julia-actions/setup-julia@latest + - uses: julia-actions/setup-julia@v3 with: version: "1" @@ -35,23 +54,30 @@ jobs: run: julia --project=docs docs/make.jl - if: github.event_name == 'push' && github.ref == 'refs/heads/main' - uses: actions/configure-pages@v5 + uses: actions/configure-pages@v6 - if: github.event_name == 'push' && github.ref == 'refs/heads/main' - uses: actions/upload-pages-artifact@v4 + uses: actions/upload-pages-artifact@v5 with: path: docs/build deploy: if: github.event_name == 'push' && github.ref == 'refs/heads/main' - needs: build + + needs: + - run_tests + - build + permissions: pages: write id-token: write + environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: - id: deployment uses: actions/deploy-pages@v5 \ No newline at end of file