Skip to content

Commit

Permalink
CI: Add AM test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
zen0bit committed May 5, 2024
1 parent d7d0670 commit a9a87be
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

echo "Hello world"
63 changes: 63 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: "AM test suite 🧪"

env:
TERM: xterm

on:
push:
branches: '**'
paths:
- 'modules/**'
- INSTALL
- APP-MANAGER
- '!programs/**'
pull_request:
branches: '**'
paths:
- 'modules/**'
- INSTALL
- APP-MANAGER
- '!programs/**'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:

# t:
# name: t
# runs-on: ubuntu-22.04
# steps:
# - uses: actions/checkout@v4
# - name: t
# run: |
# printf '\t...\n\n'
# printf '\n\n\t...\n\n'
# echo hello
# printf '\n\n\tDONE\n\n'

am:
name: Install AM 📝
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Install AM
run: |
ls -al .github/workflows
printf '\tSetting up environment...\n'
printf '\n\tCreating directory structure...\n'
mkdir -p results /usr/local/bin
# printf '\n\tUpgrading ubuntu host...\n'
# sudo apt update && sudo apt upgrade
printf '\n\tInstalling dependencies...\n'
sudo apt install -y wget curl zsync 2> /dev/null
printf '\n\tMaking needed files executable...\n'
chmod +x ./INSTALL .github/workflows/test.sh
printf '\n\tInstalling AM...\n'
sudo ./INSTALL
printf '\n'
echo "Installed version: $(am version)"
printf '\n\tRunning tests...\n'
.github/workflows/test.sh
printf '\n\tTest finished succesfully\n'

0 comments on commit a9a87be

Please sign in to comment.