Title for API docs #45
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Build" | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: | |
image: "docker://ghcr.io/chrisdone/hell-build@sha256:14776ba15fd7fce9ffff014ceb970a0e3ec2a1d12b601fcb47d7ff7010b7d7eb" | |
env: | |
# For the ~/.stack root. | |
HOME: /home/chris/ | |
STACK_ROOT: /home/chris/.stack | |
# This can be both of these, depending on whether it's a PR or | |
# main. GitHub Actions is weird. | |
# | |
# * "GIT_BRANCH=refs/heads/main" | |
# * "GIT_BRANCH=cd/2024-08-28-check-examples" | |
# | |
GIT_BRANCH: ${{ github.head_ref || github.ref }} | |
steps: | |
- run: | | |
git clone https://github.com/chrisdone/hell /tmp/hell && \ | |
cd /tmp/hell && \ | |
git checkout $GIT_BRANCH | |
- run: | | |
cd /tmp/hell && stack build --fast | |
- run: | | |
cd /tmp/hell && stack exec hell scripts/check-examples.hell | |
- run: | | |
cd /tmp/hell && HOME=/home/chris/ stack exec hell scripts/check-docs.hell |