Test selected versions on a schedule #14
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 selected versions on a schedule | |
on: | |
push: | |
branches: | |
- test-scheduled | |
paths-ignore: | |
- "**.md" | |
- "docs/**" | |
- "examples/**" | |
- "templates/**" | |
schedule: | |
- cron: "0 12 * * 1" # 12:00 every Monday. | |
jobs: | |
test: | |
strategy: | |
matrix: | |
tag: | |
- "nightly" | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.22 | |
- name: Setup Terraform | |
uses: hashicorp/setup-terraform@v3 | |
with: | |
terraform_wrapper: false | |
- name: Start Pi-hole | |
shell: bash | |
env: | |
TAG: ${{ matrix.tag }} | |
run: make docker-run | |
- name: Run tests | |
env: | |
PIHOLE_URL: http://localhost:8080 | |
PIHOLE_PASSWORD: test | |
run: make testall |