diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d96a25e24..eb4d761b1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,6 +14,9 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true +env: + TERM: xterm + jobs: t: @@ -31,24 +34,25 @@ jobs: name: Install AM 📝 runs-on: ubuntu-22.04 steps: + - uses: actions/checkout@v4 - name: Install AM run: | printf '\tSetting up environment...\n\n' - export TERM=xterm printf '\n\n\tCreating directory structure...\n\n' mkdir -p results /usr/local/bin - printf '\n\n\tUpgrading ubuntu host...\n\n' + printf '\n\n\tUpdating host...\n\n' sudo apt update # && sudo apt upgrade printf '\n\n\tInstalling dependencies...\n\n' sudo apt install -y wget curl zsync printf '\n\n\tMaking INSTALL executable...\n\n' chmod +x ./INSTALL printf '\n\n\tInstalling AM...\n\n' - sudo ./INSTALL \ - which am - am version + sudo ./INSTALL && \ printf '\n\n\tInstallation DONE\n\n' + am version && \ + printf '\n\n\tInstallation DONE\n\n' || \ + echo 'Something goes wrong!' && exit 1 version: needs: [am]