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 3e1b81b commit 83795f9
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/lint-shell.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
name: 🐶 SHELL check 🧪
on:
push:
branches: '**'
pull_request:
branches: '**'
#push:
# branches: '**'
#pull_request:
# branches: '**'
workflow_dispatch:

jobs:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/lint-yaml.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
name: 🐶 YAML check 🧪
on:
push:
branches: '**'
pull_request:
branches: '**'
#push:
# branches: '**'
#pull_request:
# branches: '**'
workflow_dispatch:
jobs:
yamllint:
Expand Down
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"
57 changes: 57 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -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'

0 comments on commit 83795f9

Please sign in to comment.