Skip to content

Test checksums from package create #5

Test checksums from package create

Test checksums from package create #5

name: Test Package Create Checksums
on: push
permissions:
contents: read
concurrency:
cancel-in-progress: true

Check failure on line 9 in .github/workflows/test-package-create.yml

View workflow run for this annotation

GitHub Actions / Test Package Create Checksums

Invalid workflow file

The workflow is not valid. .github/workflows/test-package-create.yml (Line: 9, Col: 3): Required property is missing: group
jobs:
test-checksums:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- name: Setup golang
uses: ./.github/actions/golang
- name: Build Zarf
run: make build
- name: Build examples
run: make build-examples ARCH=amd64
- name: Compare checksums
run: |
set -e
for f in build/*.tar.zst
do
CHECKSUM=$(tar Oxf $f checksums.txt)
NAME=$(basename $f .tar.zst)
EXPECTED_CHECKSUM=$(cat examples-checksums/$NAME.txt)
if [ "$CHECKSUM" != "$EXPECTED_CHECKSUM" ]
then
echo "Package $f does not have expected checksum."
exit 1
fi
done