mirror of
https://github.com/pi-hole/docker-pi-hole.git
synced 2024-06-29 04:31:00 +02:00
commit
8273649b5e
25
.github/workflows/test-and-build.yaml
vendored
25
.github/workflows/test-and-build.yaml
vendored
|
@ -10,32 +10,7 @@ on:
|
||||||
types: [published]
|
types: [published]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# JOB to run change detection
|
|
||||||
changes:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
# Set job outputs to values from filter step
|
|
||||||
outputs:
|
|
||||||
requires-build: ${{ steps.filter.outputs.requires-build }}
|
|
||||||
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-build:
|
|
||||||
- 'src/**'
|
|
||||||
- 'test/**'
|
|
||||||
- '.github/workflows/test-and-build.yaml'
|
|
||||||
- 'build-and-test.sh'
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
needs: changes
|
|
||||||
# Only run this step if certain files have been touched, or if it is a scheduled build.
|
|
||||||
if: ${{ needs.changes.outputs.requires-build == 'true' || github.event_name == 'schedule' }}
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repo
|
- name: Checkout Repo
|
||||||
|
|
Loading…
Reference in New Issue
Block a user