chore(deps): update linuxserver/speedtest-tracker docker tag to v1.2.β¦ #206
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |