Test selected versions #168
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: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- "**.md" | |
- "docs/**" | |
- "examples/**" | |
- "templates/**" | |
pull_request: | |
paths-ignore: | |
- "**.md" | |
- "docs/**" | |
- "examples/**" | |
- "templates/**" | |
schedule: | |
- cron: "0 12 * * 1" # 12:00 every Monday. | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
tag: [ | |
"2022.07", # Current test version used. | |
"2022.12.1", # Latest version of 2022. | |
"2023.11.0", # Latest version of 2023. | |
"2024.06.0", # Latest known version of 2024. | |
"latest", | |
] | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
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 |