test.yml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. name: "AM test suite 🧪"
  2. env:
  3. TERM: xterm
  4. on:
  5. push:
  6. branches: '**'
  7. paths:
  8. - 'modules/**'
  9. - INSTALL
  10. - APP-MANAGER
  11. - '!programs/**'
  12. pull_request:
  13. branches: '**'
  14. paths:
  15. - 'modules/**'
  16. - INSTALL
  17. - APP-MANAGER
  18. - '!programs/**'
  19. workflow_dispatch:
  20. concurrency:
  21. group: ${{ github.workflow }}-${{ github.ref }}
  22. cancel-in-progress: true
  23. jobs:
  24. am:
  25. name: Install AM 📝
  26. runs-on: ubuntu-latest
  27. steps:
  28. - uses: actions/checkout@v4
  29. - name: Install AM
  30. run: |
  31. ls -al .github/workflows
  32. printf '\tSetting up environment...\n'
  33. printf '\n\tCreating directory structure...\n'
  34. mkdir -p results /usr/local/bin
  35. # printf '\n\tUpgrading ubuntu host...\n'
  36. # sudo apt update && sudo apt upgrade
  37. printf '\n\tInstalling dependencies...\n'
  38. sudo apt install -y wget curl zsync 2> /dev/null
  39. printf '\n\tMaking needed files executable...\n'
  40. chmod +x ./INSTALL .github/workflows/test.sh
  41. printf '\n\tInstalling AM...\n'
  42. sudo ./INSTALL
  43. printf '\n'
  44. echo "Installed version: $(am version)"
  45. printf '\n\tRunning tests...\n'
  46. .github/workflows/test.sh
  47. printf '\n\tTest finished succesfully\n'
  48. # t:
  49. # name: t
  50. # runs-on: ubuntu-latest
  51. # steps:
  52. # - uses: actions/checkout@v4
  53. # - name: t
  54. # run: |
  55. # printf '\t...\n\n'
  56. # printf '\n\n\t...\n\n'
  57. # echo hello
  58. # printf '\n\n\tDONE\n\n'