Skip to content

chore(deps): update linuxserver/speedtest-tracker docker tag to v1.1.… #203

chore(deps): update linuxserver/speedtest-tracker docker tag to v1.1.…

chore(deps): update linuxserver/speedtest-tracker docker tag to v1.1.… #203

Workflow file for this run

name: πŸ§ͺ Test
on:
push:
branches:
- main
paths:
- "**/compose.yml"
- .github/workflows/test.yml
pull_request:
paths:
- "**/compose.yml"
- .github/workflows/test.yml
jobs:
detect:
name: πŸ” Detect Compose Files
runs-on: Ubuntu-Latest
outputs:
composes: ${{ steps.detect.outputs.composes }}
steps:
- name: 🚚 Checkout Repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: πŸ”„ Check the Changed Files
id: changed
uses: tj-actions/changed-files@d6e91a2266cdb9d62096cebf1e8546899c6aa18f # v45.0.6
with:
files_yaml: |
test:
- .github/workflows/test.yml
compose:
- "**/compose.yml"
- name: πŸ“‘ Collect the Compose Information
id: detect
run: |
if ${{ steps.changed.outputs.test_any_changed }}; then
composes="$(find "$GITHUB_WORKSPACE" -name 'compose.yml')"
else
composes='${{ steps.changed.outputs.compose_all_changed_files }}'
fi
for compose in $composes; do
dir="$(dirname "$compose")"
name="$(grep -Po '(?<=<!-- name: ).+(?= -->)' "$dir/README.md")"
echo "$name,$dir" | jq -Rc 'split(",") | { name: .[0], dir: .[1] }'
done | echo "composes=$(jq -sc)" | tee -a "$GITHUB_OUTPUT"
test:
name: ${{ matrix.compose.name }}
needs: detect
runs-on: Ubuntu-Latest
defaults:
run:
working-directory: ${{ matrix.compose.dir }}
strategy:
matrix:
compose: ${{ fromJson(needs.detect.outputs.composes) }}
steps:
- name: 🚚 Checkout Repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: ♻️ Copy the .env
run: |
for dir in "$PWD" "$GITHUB_WORKSPACE"; do
sed -e 's/=$/=./g' "$dir/.env.tmpl" >"$dir/.env"
done
- name: 🐳 Start the Containers
run: docker compose up -d --quiet-pull