Skip to content

Test checksums from package create #4

Test checksums from package create

Test checksums from package create #4

name: Test Package Create
on:
pull_request:
merge_group:
permissions:
contents: read
concurrency:
cancel-in-progress: true

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

View workflow run for this annotation

GitHub Actions / Test Package Create

Invalid workflow file

The workflow is not valid. .github/workflows/test-package-create.yml (Line: 10, Col: 3): Required property is missing: group
jobs:
test-create:
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