feat: introduce logger to ctx, refactor cmd, and migrate logo to Zarf Say #90
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: Test Package Create Checksums | |
on: | |
pull_request: | |
merge_group: | |
permissions: | |
contents: read | |
concurrency: | |
group: package-create-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test-checksums: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 | |
with: | |
go-version-file: go.mod | |
- name: Build Zarf | |
run: make build | |
- name: Build examples | |
run: make build-examples ARCH=amd64 | |
- name: Compare checksums | |
run: | | |
set -e | |
for f in hack/examples-checksums/*.txt | |
do | |
NAME=$(basename $f .txt) | |
CHECKSUM=$(tar Oxf build/$NAME.tar.zst checksums.txt | grep -v sboms.tar) | |
EXPECTED_CHECKSUM=$(cat $f | grep -v sboms.tar) | |
if [[ "$CHECKSUM" != "$EXPECTED_CHECKSUM" ]] | |
then | |
echo "Package $f does not have expected checksum." | |
echo "$CHECKSUM" | |
echo "-----" | |
echo "$EXPECTED_CHECKSUM" | |
exit 1 | |
fi | |
done |