diff options
| author | Alex Pooley (@zuedev) <zuedev@gmail.com> | 2026-02-05 16:15:11 +0000 |
|---|---|---|
| committer | Alex Pooley (@zuedev) <zuedev@gmail.com> | 2026-02-05 16:15:11 +0000 |
| commit | a1e1f37cae464293221559c33433e336c02d7f5e (patch) | |
| tree | faf3bc3f1f25b914a16cef0fac50cee08e4d3915 /.github/workflows/test-validators.yml | |
| parent | 9c5c61c43de48492dbf736ebf2da6b164147602b (diff) | |
| download | gitinfo-a1e1f37cae464293221559c33433e336c02d7f5e.tar gitinfo-a1e1f37cae464293221559c33433e336c02d7f5e.tar.gz gitinfo-a1e1f37cae464293221559c33433e336c02d7f5e.tar.bz2 gitinfo-a1e1f37cae464293221559c33433e336c02d7f5e.tar.xz gitinfo-a1e1f37cae464293221559c33433e336c02d7f5e.zip | |
install GNU sed and use bash shell in CI for Alpine
Diffstat (limited to '.github/workflows/test-validators.yml')
| -rw-r--r-- | .github/workflows/test-validators.yml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/.github/workflows/test-validators.yml b/.github/workflows/test-validators.yml index dae7308..f734b5a 100644 --- a/.github/workflows/test-validators.yml +++ b/.github/workflows/test-validators.yml @@ -86,21 +86,25 @@ jobs: - uses: actions/checkout@v4 - name: Install dependencies - run: apk add --no-cache bash jq coreutils + run: apk add --no-cache bash jq coreutils sed - name: Make script executable run: chmod +x validators/bash/validate.sh - name: Validate minimal example + shell: bash run: ./validators/bash/validate.sh examples/minimal.gitinfo - name: Validate open-source-project example + shell: bash run: ./validators/bash/validate.sh examples/open-source-project.gitinfo - name: Validate mirror-only example (JSONC with comments) + shell: bash run: ./validators/bash/validate.sh examples/mirror-only.gitinfo - name: Test invalid file detection + shell: bash run: | echo '{"invalid_field": "should fail"}' > /tmp/invalid.gitinfo if ./validators/bash/validate.sh /tmp/invalid.gitinfo; then |
