Test selected versions #32
This file contains hidden or 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: | |
| - "2025.03.0" # Recent FTL v6 | |
| 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 |