feat(lbaas): add support for lb redirect rule status #1008
Workflow file for this run
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: UpCloud Terraform provider tests | |
on: | |
pull_request: | |
paths: | |
- .github/workflows/terraform.yml | |
- go.mod | |
- internal/** | |
- upcloud/** | |
concurrency: | |
group: ${{ github.repository }}-${{ github.workflow }} | |
cancel-in-progress: false | |
jobs: | |
Test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- name: Setup Go | |
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0 | |
with: | |
go-version-file: 'go.mod' | |
- name: Setup Terraform | |
uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # v3.1.2 | |
with: | |
terraform_wrapper: false | |
- name: Run unit tests | |
run: make test | |
- name: Run acceptance tests | |
env: | |
UPCLOUD_USERNAME: ${{ secrets.UPCLOUD_USERNAME }} | |
UPCLOUD_PASSWORD: ${{ secrets.UPCLOUD_PASSWORD }} | |
if: env.UPCLOUD_PASSWORD != '' | |
run: make testacc |