Allow graceful inconsistency management by TF when public_ips in reso… #405
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: Integration tests | |
on: | |
pull_request: | |
branches: | |
- master | |
paths: | |
- '**.go' | |
- 'tests/**' | |
- 'scripts/integration.sh' | |
- 'GNUmakefile' | |
- '!**_test.go' | |
workflow_dispatch: | |
jobs: | |
Integration_tests: | |
environment: test-eu-west-2 | |
runs-on: [self-hosted, linux, eu-west-2] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
ref: ${{ github.event.pull_request.head.ref }} | |
- uses: outscale-dev/frieza-github-actions/frieza-clean@master | |
with: | |
access_key: ${{ secrets.OSC_ACCESS_KEY }} | |
secret_key: ${{ secrets.OSC_SECRET_KEY }} | |
region: ${{ secrets.OSC_REGION }} | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 'stable' | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.5.x' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
- name: Setup Terraform | |
uses: hashicorp/setup-terraform@v2 | |
with: | |
terraform_version: 1.3.5 | |
terraform_wrapper: false | |
- name: Build go test | |
run: make test | |
- name: Run integration tests | |
run: make test-integration | |
env: | |
OUTSCALE_ACCESSKEYID: ${{ secrets.OSC_ACCESS_KEY }} | |
OUTSCALE_SECRETKEYID: ${{ secrets.OSC_SECRET_KEY }} | |
OUTSCALE_REGION: ${{ secrets.OSC_REGION }} | |
OUTSCALE_ACCOUNT: ${{ secrets.OSC_ACCOUNT_ID }} | |
OUTSCALE_IMAGEID: ${{ secrets.OUTSCALE_IMAGEID }} | |
TF_VAR_image_id: ${{ secrets.OUTSCALE_IMAGEID }} | |
TF_VAR_region: ${{ secrets.OSC_REGION }} | |
TF_VAR_service_name: ${{ secrets.SERVICE_NAME }} | |
SKIP_NETS: ${{ secrets.SKIP_NETS }} |