|
|
|
@ -8,6 +8,30 @@ permissions:
|
|
|
|
|
contents: read
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
# JOB to run change detection
|
|
|
|
|
changes:
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
# Set job outputs to values from filter step
|
|
|
|
|
outputs:
|
|
|
|
|
requires-distro-test: ${{ steps.filter.outputs.requires-distro-test }}
|
|
|
|
|
steps:
|
|
|
|
|
-
|
|
|
|
|
name: Checkout Repo
|
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
-
|
|
|
|
|
name: Check which files have been touched
|
|
|
|
|
uses: dorny/paths-filter@v2
|
|
|
|
|
id: filter
|
|
|
|
|
with:
|
|
|
|
|
filters: |
|
|
|
|
|
requires-distro-test:
|
|
|
|
|
- 'advanced/**'
|
|
|
|
|
- 'automated install/**'
|
|
|
|
|
- 'manpages/**'
|
|
|
|
|
- 'test/**'
|
|
|
|
|
- 'gravity.sh'
|
|
|
|
|
- 'pihole'
|
|
|
|
|
|
|
|
|
|
smoke-tests:
|
|
|
|
|
if: github.event.pull_request.draft == false
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
@ -17,6 +41,7 @@ jobs:
|
|
|
|
|
uses: actions/checkout@v3.0.2
|
|
|
|
|
-
|
|
|
|
|
name: Check scripts in repository are executable
|
|
|
|
|
if: ${{ needs.changes.outputs.requires-distro-test == 'true' }}
|
|
|
|
|
run: |
|
|
|
|
|
IFS=$'\n';
|
|
|
|
|
for f in $(find . -name '*.sh'); do if [[ ! -x $f ]]; then echo "$f is not executable" && FAIL=1; fi ;done
|
|
|
|
@ -35,11 +60,10 @@ jobs:
|
|
|
|
|
name: Run editorconfig-checker
|
|
|
|
|
run: editorconfig-checker
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
distro-test:
|
|
|
|
|
if: github.event.pull_request.draft == false
|
|
|
|
|
needs: [ smoke-tests, changes ]
|
|
|
|
|
if: ${{ github.event.pull_request.draft == false && needs.changes.outputs.requires-distro-test == 'true' }}
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
needs: smoke-tests
|
|
|
|
|
strategy:
|
|
|
|
|
fail-fast: false
|
|
|
|
|
matrix:
|
|
|
|
|