diff --git a/.github/workflows/lint-shell.yml b/.github/workflows/lint-shell.yml index d3971285c..f0bdedea3 100644 --- a/.github/workflows/lint-shell.yml +++ b/.github/workflows/lint-shell.yml @@ -1,10 +1,10 @@ --- name: ๐Ÿถ SHELL check ๐Ÿงช on: - push: - branches: '**' - pull_request: - branches: '**' + #push: + # branches: '**' + #pull_request: + # branches: '**' workflow_dispatch: jobs: diff --git a/.github/workflows/lint-yaml.yml b/.github/workflows/lint-yaml.yml index ef619f24a..0939d3900 100644 --- a/.github/workflows/lint-yaml.yml +++ b/.github/workflows/lint-yaml.yml @@ -1,10 +1,10 @@ --- name: ๐Ÿถ YAML check ๐Ÿงช on: - push: - branches: '**' - pull_request: - branches: '**' + #push: + # branches: '**' + #pull_request: + # branches: '**' workflow_dispatch: jobs: yamllint: diff --git a/.github/workflows/test.sh b/.github/workflows/test.sh new file mode 100644 index 000000000..02cf0a196 --- /dev/null +++ b/.github/workflows/test.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +echo "Hello world" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 000000000..c2fc3221b --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,57 @@ +name: "AM test suite ๐Ÿงช" + +env: + TERM: xterm + +on: + workflow_dispatch: + push: + branches: '**' + # paths: + # - quickget + pull_request: + branches: '**' + # paths: + # - quickget +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\n' + printf '\n\tCreating directory structure...\n\n' + mkdir -p results /usr/local/bin + # printf '\n\tUpgrading ubuntu host...\n\n' + # sudo apt update && sudo apt upgrade + printf '\n\tInstalling dependencies...\n\n' + sudo apt install -y wget curl zsync 2> /dev/null + printf '\n\tMaking needed files executable...\n\n' + chmod +x ./INSTALL .github/workflows/test.sh + printf '\n\tInstalling AM...\n\n' + sudo ./INSTALL + printf '\n\n' + echo "Installed version: $(am version)" + printf '\n\tRunning tests...\n\n' + .github/workflows/test.sh + printf '\n\tTest finished succesfully\n\n'