Skip to content

Commit

Permalink
CI
Browse files Browse the repository at this point in the history
  • Loading branch information
adrelanos committed May 24, 2024
1 parent fad8909 commit 652ff3c
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: docker build
on:
push:
paths:
- 'usr/bin/dist-installer-cli'
- 'usr/share/usability-misc/dist-installer-cli-standalone'
- '.github/workflows/builds.yml'

jobs:
Expand All @@ -21,7 +21,7 @@ jobs:
with:
filters: |
installer:
- 'usr/bin/dist-installer-cli'
- 'usr/share/usability-misc/dist-installer-cli-standalone'
builds:
- '.github/workflows/builds.yml'
Expand Down Expand Up @@ -127,37 +127,37 @@ jobs:
fi
- name: Run default dist-installer-cli - Clearnet
run: sudo -u user -- usr/bin/dist-installer-cli --non-interactive --log-level=debug --no-boot --dev --ci
run: sudo -u user -- usr/share/usability-misc/dist-installer-cli-standalone --non-interactive --log-level=debug --no-boot --dev --ci
- name: Run default dist-installer-cli - Onion
run: sudo -u user -- usr/bin/dist-installer-cli --non-interactive --log-level=debug --no-boot --dev --ci --onion
run: sudo -u user -- usr/share/usability-misc/dist-installer-cli-standalone --non-interactive --log-level=debug --no-boot --dev --ci --onion

- name: Run VirtualBox Installer - default repository - Clearnet
run: sudo -u user -- usr/bin/dist-installer-cli --non-interactive --log-level=debug --no-boot --dev --ci --virtualbox-only
run: sudo -u user -- usr/share/usability-misc/dist-installer-cli-standalone --non-interactive --log-level=debug --no-boot --dev --ci --virtualbox-only
- name: Run VirtualBox Installer - default repository - Onion
run: sudo -u user -- usr/bin/dist-installer-cli --non-interactive --log-level=debug --no-boot --dev --ci --virtualbox-only --onion
run: sudo -u user -- usr/share/usability-misc/dist-installer-cli-standalone --non-interactive --log-level=debug --no-boot --dev --ci --virtualbox-only --onion

- name: Run VirtualBox Installer - Oracle repository - Clearnet
run: |
if ! grep -iq "kali" /etc/os-release; then
sudo -u user -- usr/bin/dist-installer-cli --non-interactive --log-level=debug --no-boot --dev --ci --virtualbox-only --oracle-repo
sudo -u user -- usr/share/usability-misc/dist-installer-cli-standalone --non-interactive --log-level=debug --no-boot --dev --ci --virtualbox-only --oracle-repo
fi
- name: Run VirtualBox Installer - Oracle repository - Onion
run: |
if ! grep -iq "kali" /etc/os-release; then
sudo -u user -- usr/bin/dist-installer-cli --non-interactive --log-level=debug --no-boot --dev --ci --virtualbox-only --oracle-repo --onion
sudo -u user -- usr/share/usability-misc/dist-installer-cli-standalone --non-interactive --log-level=debug --no-boot --dev --ci --virtualbox-only --oracle-repo --onion
fi
- name: Run VirtualBox Installer - back to default repository
run: sudo -u user -- usr/bin/dist-installer-cli --non-interactive --log-level=debug --no-boot --dev --ci --virtualbox-only
run: sudo -u user -- usr/share/usability-misc/dist-installer-cli-standalone --non-interactive --log-level=debug --no-boot --dev --ci --virtualbox-only
- name: Run VirtualBox Installer - back to default repository - Clearnet
run: sudo -u user -- usr/bin/dist-installer-cli --non-interactive --log-level=debug --no-boot --dev --ci --virtualbox-only --onion
run: sudo -u user -- usr/share/usability-misc/dist-installer-cli-standalone --non-interactive --log-level=debug --no-boot --dev --ci --virtualbox-only --onion
- name: Run with non-English locale - Clearnet
run: sudo -u user -- env LC_ALL=ru_RU.UTF-8 LANG=ru_RU.UTF-8 LANGUAGE=ru_RU usr/bin/dist-installer-cli --non-interactive --log-level=debug --no-boot --dev --ci --import-only=both --destroy-existing-guest
run: sudo -u user -- env LC_ALL=ru_RU.UTF-8 LANG=ru_RU.UTF-8 LANGUAGE=ru_RU usr/share/usability-misc/dist-installer-cli-standalone --non-interactive --log-level=debug --no-boot --dev --ci --import-only=both --destroy-existing-guest

## When `source`d the script should exit in less than a second because it should not perform actual work.
## If it was running longer that would mean that it can no longer be `source`d without actually running.
- name: Run Bash to test 'source'ing the script
run: sudo -u user -- timeout 5 bash -c "set -x && source usr/bin/dist-installer-cli"
run: sudo -u user -- timeout 5 bash -c "set -x && source usr/share/usability-misc/dist-installer-cli-standalone"

- name: Run Installer ShellCheck
run: shellcheck usr/bin/dist-installer-cli
run: shellcheck usr/share/usability-misc/dist-installer-cli-standalone

0 comments on commit 652ff3c

Please sign in to comment.