CI #33
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: "Apps test 🧪" | |
env: | |
TERM: xterm | |
N: 0 | |
on: | |
pull_request: | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
am: | |
name: test all Apps 📝 | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: test all Apps | |
run: | | |
printf '\tSetting up environment...\n' | |
printf '\n\tCreating directory structure...\n' | |
mkdir -p results | |
printf '\n\tInstalling dependencies...\n' | |
sudo apt install -y wget curl zsync grep jq sed xdg-user-dirs sudo | |
printf '\n\tMaking needed files executable...\n' | |
chmod +x ./INSTALL | |
printf '\n\tInstalling AM...\n' | |
sudo ./INSTALL | |
printf '\n' | |
echo -e "Installed version: $(am version)\n\n" | |
apps=$(cut -d' ' -f2 < /opt/am/x86_64-apps) | |
COUNT=$(echo "${apps}" | wc -l) | |
echo "available apps: $COUNT" | |
for app in ${apps}; do | |
((N++)) | |
echo -e "\n\n$N\n\n" | |
am -i $app && echo "OK: $app" >> results/good || echo "FAIL! $app" >> results/bad | |
am -R $app && echo "OK: $app" >> results/removed || echo "REMOVE! $app" >> results/noremoved | |
done | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: results | |
path: results |