Skip to content

Commit

Permalink
test_as_action: clean up Az Storage before test + add installability …
Browse files Browse the repository at this point in the history
…check after the test
  • Loading branch information
GreyCat committed Aug 29, 2024
1 parent e1208f7 commit f572d25
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,15 @@ jobs:
run: ./test-download-debs
- name: Generate test GPG keys
run: ./test-generate-gpg
- name: Clean Az Storage container
uses: azure/CLI@v1
with:
inlineScript: |
az storage blob delete-batch \
--account-name packageskaitai \
--source test3 \
--sas-token ${{ secrets.TEST_AZURE_STORAGE_SAS_TOKEN }} \
--pattern "*"
- name: Run action - create repo from scratch
uses: ./ # Uses an action in the root directory
id: az_repo_apt_add
Expand All @@ -38,3 +47,13 @@ jobs:
az_storage_account: packageskaitai
az_storage_container: test3
packages: all_pkgs/kaitai-struct-compiler_0.7_all.deb
- name: Test install 0.7
run: |
mkdir -p test
./test-pkg-install-az | tee test/test-0.7.log
if grep -q 'kaitai-struct-compiler 0.7' test/test-0.7.log; then
echo OK
else
echo FAIL
exit 1
fi

0 comments on commit f572d25

Please sign in to comment.