test_as_action: try with az command line directly - it should be prei… #12
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 | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
test_local: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Prebuild Docker dpkg container | |
run: ./docker-build-dpkg-container | |
- name: Download test packages | |
run: ./test-download-debs | |
- name: Generate test GPG keys | |
run: ./test-generate-gpg | |
- name: Run tests | |
run: ./docker-test-all | |
test_as_action: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Download test packages | |
run: ./test-download-debs | |
- name: Generate test GPG keys | |
run: ./test-generate-gpg | |
- name: Clean Az Storage container | |
env: | |
AZURE_STORAGE_SAS_TOKEN: ${{ secrets.TEST_AZURE_STORAGE_SAS_TOKEN }} | |
run: | | |
az storage blob delete-batch \ | |
--account-name packageskaitai \ | |
--source test3 \ | |
--pattern '*' | |
- name: List Az Storage container | |
env: | |
AZURE_STORAGE_SAS_TOKEN: ${{ secrets.TEST_AZURE_STORAGE_SAS_TOKEN }} | |
run: | |
az storage blob list \ | |
--account-name packageskaitai \ | |
-c test3 \ | |
--output table | |
- name: Run action - create repo from scratch | |
uses: ./ # Uses an action in the root directory | |
with: | |
az_storage_sas_token: ${{ secrets.TEST_AZURE_STORAGE_SAS_TOKEN }} | |
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 | |
sudo ./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 |