Skip to content

Test sdd install/remove apps #93

Test sdd install/remove apps

Test sdd install/remove apps #93

name: Test sdd install/remove apps
on:
workflow_dispatch:
schedule:
- cron: "25 4 * * 6"
jobs:
generate-list-of-available-apps:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- uses: actions/checkout@v4
- name: Generate matrix with apps available for current arch
id: set-matrix
run: >-
SDD_NO_HEADER=1 ./bin/sdd list --available |
TERM=xterm awk -v ORS= -v sep=
'BEGIN {print "matrix=["}
{printf "%s\"%s@%s\"", sep, $1, $2; sep=","}
END {print "]"}' >> $GITHUB_OUTPUT
sdd-install-remove-app:
needs: generate-list-of-available-apps
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
appname: ${{ fromJson(needs.generate-list-of-available-apps.outputs.matrix) }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Install/remove ${{ matrix.appname }}
run: |
./bin/sdd install ${{ matrix.appname }}
./bin/sdd list --installed
./bin/sdd remove ${{ matrix.appname }}