fix(server): migration to explicit primary IPs fails #1490
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 | |
on: | |
pull_request: | |
jobs: | |
integration_tests: | |
runs-on: self-hosted | |
# These tests use actual resources in a hetzner-owned hcloud project, | |
# depending on the current usage, some quotas are reached and test tests | |
# might fail. | |
strategy: | |
fail-fast: false | |
matrix: | |
terraform_version: [ "1.0.x", "1.1.x", "1.2.x", "1.3.x" ] | |
name: integration-${{ matrix.terraform_version }} | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@v3 | |
- | |
name: Unshallow | |
run: git fetch --prune --unshallow | |
- | |
uses: hashicorp/setup-terraform@v2 | |
with: | |
terraform_version: ${{ matrix.terraform_version }} | |
terraform_wrapper: false | |
- | |
name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.19 | |
- | |
name: Run tests | |
run: | | |
export HCLOUD_TOKEN=$(./scripts/get-token.sh) | |
cat resp.json | |
make testacc | |
make | |
./scripts/delete-token.sh $HCLOUD_TOKEN | |
unit_tests: | |
runs-on: self-hosted | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@v3 | |
- | |
name: Unshallow | |
run: git fetch --prune --unshallow | |
- | |
name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.19 | |
- | |
name: Run tests | |
run: | | |
make test |