diff --git a/.gitea/workflows/validate-cooklang.yml b/.gitea/workflows/validate-cooklang.yml new file mode 100644 index 0000000..46cc240 --- /dev/null +++ b/.gitea/workflows/validate-cooklang.yml @@ -0,0 +1,25 @@ +# Validates that all .cook files in this repository are valid Cooklang recipes. +# Uses cookcli (https://hub.docker.com/r/inigochoa/cookcli) via Podman. +name: Validate Cooklang + +on: + push: + branches: [main, master] + pull_request: + branches: [main, master] + +jobs: + validate: + runs-on: ubuntu-latest + container: + type: podman + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Validate all .cook files + run: | + podman run --rm \ + -v "$(pwd):/recipes:ro" \ + docker.io/inigochoa/cookcli \ + cook doctor validate -b /recipes --strict