Athena Arch Installation Testing #14
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: Installation Testing | |
on: | |
# push: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 */1 * *' | |
jobs: | |
athena-quicktest: | |
env: | |
RELEASE_VERSION: 'v23.11' | |
runs-on: ubuntu-latest | |
container: | |
image: athenaos/base-devel:latest | |
options: --privileged | |
steps: | |
- name: Checkout files | |
uses: actions/checkout@v4 | |
- name: Send a request to webhook | |
run: | | |
curl -H "Content-Type: application/json" -d '{"content": "Athena install workflow started. ${{ github.ref }} Commit: ${{ github.sha }}"}' ${{ secrets.WEBHOOK_URL }} | |
- name: Install dependencies | |
run: | | |
pacman -Syyu --noconfirm quickemu qemu-desktop socat ffmpeg imagemagick libnotify tesseract tesseract-data-eng w3m xdg-utils git | |
systemd-machine-id-setup | |
ln -s /usr/bin/xdg-open /usr/bin/open | |
git clone https://github.com/quickemu-project/quicktest | |
- name: Initialize | |
run: | | |
cd quicktest | |
# To prevent missing X11 $DISPLAY error needed by notify-send | |
sed -i "s/command -v notify-send/command -v echo/g" ./quicktest | |
mkdir -p testcases/athenaos/${{env.RELEASE_VERSION}}/i18n | |
curl -o testcases/athenaos/${{env.RELEASE_VERSION}}/i18n/en_US https://raw.githubusercontent.com/Athena-OS/athena/main/tests/i18n/en_US | |
- name: Test - Athena Arch with GNOME and GDM | |
run: | | |
cd quicktest | |
curl -o testcases/athenaos/${{env.RELEASE_VERSION}}/test_install_entire_disk_arch_with_gnome_gdm https://raw.githubusercontent.com/Athena-OS/athena/main/tests/test_install_entire_disk_arch_with_gnome_gdm | |
QUICKEMU_WIDTH=1024 QUICKEMU_HEIGHT=768 ./quicktest test_install_entire_disk_arch_with_gnome_gdm athenaos ${{env.RELEASE_VERSION}} | |
rm -rf ./machines/* | |
- name: Test - Athena Arch with KDE and LightDM | |
run: | | |
cd quicktest | |
curl -o testcases/athenaos/${{env.RELEASE_VERSION}}/test_install_entire_disk_arch_with_kde_lightdm https://raw.githubusercontent.com/Athena-OS/athena/main/tests/test_install_entire_disk_arch_with_kde_lightdm | |
QUICKEMU_WIDTH=1024 QUICKEMU_HEIGHT=768 ./quicktest test_install_entire_disk_arch_with_kde_lightdm athenaos ${{env.RELEASE_VERSION}} | |
rm -rf ./machines/* | |
- name: Test - Athena Arch with XFCE and SDDM | |
run: | | |
cd quicktest | |
curl -o testcases/athenaos/${{env.RELEASE_VERSION}}/test_install_entire_disk_arch_with_xfce_sddm https://raw.githubusercontent.com/Athena-OS/athena/main/tests/test_install_entire_disk_arch_with_xfce_sddm | |
QUICKEMU_WIDTH=1024 QUICKEMU_HEIGHT=768 ./quicktest test_install_entire_disk_arch_with_xfce_sddm athenaos ${{env.RELEASE_VERSION}} | |
rm -rf ./machines/* | |
- name: Test - Workflow Test Result | |
run: | | |
if [ "${{ job.status }}" == "success" ]; then | |
STATUS="successful" | |
else | |
STATUS="failed" | |
fi | |
curl -H "Content-Type: application/json" -d '{"content": "Athena install workflow Finished with Status: $STATUS"}' ${{ secrets.WEBHOOK_URL }} | |