Skip to content

feat: Adding Oracle Terraform Provider to Fabric Examples #3

feat: Adding Oracle Terraform Provider to Fabric Examples

feat: Adding Oracle Terraform Provider to Fabric Examples #3

Workflow file for this run

name: test-oracle-metal-nimf
on:
workflow_dispatch:
pull_request:
jobs:
setup-tests:
name: Setup NIMF DIGP Tests
runs-on: ubuntu-latest
env:
TF_VAR_equinix_client_id: ${{ secrets.EQUINIX_CLIENT_ID }}
TF_VAR_equinix_client_secret: ${{ secrets.EQUINIX_CLIENT_SECRET }}
ORACLE_SERVICE_KEYS: ${{ secrets.ORACLE_SERVICE_KEYS }}
TEST_DATA_PROD_PORT_2_ORACLE_CONNECTION: ${{ secrets.TEST_DATA_PROD_METAL_NIMF_2_ORACLE_CONNECTION }}
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: './go.mod'
id: go
- name: Get dependencies
run: |
go mod download
- uses: hashicorp/setup-terraform@v3
with:
terraform_version: ${{ matrix.terraform }}
terraform_wrapper: false
- name: Setup Variables Files
run: |
echo $ORACLE_SERVICE_KEYS > "./examples/metal-nimf-2-oracle-connection/oci_api_key.pem"
ls -lrt ./examples/metal-nimf-2-oracle-connection/
cat ./examples/metal-nimf-2-oracle-connection/oci_api_key.pem
echo $TEST_DATA_PROD_PORT_2_ORACLE_CONNECTION >> "./examples/metal-nimf-2-oracle-connection/terraform.tfvars.json"
- name: Run Go Tests
run:
go test ./tests/prod/metal-nimf -v -coverprofile coverage_metal_nimf_modules.txt -covermode=atomic -count 1 -parallel 8 -timeout 180m -run "(TestPort2OracleCreateConnection_DIGP)"
- name: Upload test coverage to Codecov
if: ${{ always() }}
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage_metal_nimf_modules.txt