Skip to content

Bump actions/configure-pages from 3 to 4 #190

Bump actions/configure-pages from 3 to 4

Bump actions/configure-pages from 3 to 4 #190

Workflow file for this run

name: Terraform E2E Test
on:
workflow_dispatch:
pull_request:
branches: [main]
workflow_run:
workflows: ["Dependabot PR Check"]
types:
- completed
permissions:
contents: none
jobs:
build_for_terratest:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' || (github.event_name == 'pull_request' && github.actor != 'dependabot[bot]') }}
permissions:
contents: read
steps:
- name: "Checkout"
uses: actions/checkout@v4
with:
ref: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.head_branch || '' }}
- name: "Configure Go"
uses: actions/setup-go@v4
- name: Install GoReleaser
uses: goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8
with:
install-only: true
- name: "Build"
run: make testrelease
- name: "Tar files"
run: tar -cvf test-reg.tar ./test-reg
- name: "Save build for testing"
uses: actions/upload-artifact@v3.1.3
with:
name: test-build
path: ./test-reg.tar
if-no-files-found: error
terratest_pra:
runs-on: ubuntu-latest
needs: [build_for_terratest]
environment:
name: terratest-pra
permissions:
contents: read
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: "Configure Go"
uses: actions/setup-go@v4
- name: "Download test release"
uses: actions/download-artifact@v3.0.2
with:
name: test-build
- name: "Untar files"
run: tar -xvf test-reg.tar
- name: "Setup Terraform"
uses: autero1/action-terraform@v1.1.1
with:
terraform_version: 1.4.5
- name: "Run Tests"
run: go test -v -timeout 10m $(go list ./... | grep /test | xargs)
env:
BT_API_HOST: ${{ secrets.BT_API_HOST }}
BT_CLIENT_ID: ${{ secrets.BT_CLIENT_ID }}
BT_CLIENT_SECRET: ${{ secrets.BT_CLIENT_SECRET }}
terratest_rs:
runs-on: ubuntu-latest
needs: [build_for_terratest]
environment:
name: terratest-rs
permissions:
contents: read
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: "Configure Go"
uses: actions/setup-go@v4
- name: "Download test release"
uses: actions/download-artifact@v3.0.2
with:
name: test-build
- name: "Untar files"
run: tar -xvf test-reg.tar
- name: "Setup Terraform"
uses: autero1/action-terraform@v1.1.1
with:
terraform_version: 1.4.5
- name: "Run Tests"
run: go test -v -timeout 10m $(go list ./... | grep /test | xargs)
env:
BT_API_HOST: ${{ secrets.BT_API_HOST }}
BT_CLIENT_ID: ${{ secrets.BT_CLIENT_ID }}
BT_CLIENT_SECRET: ${{ secrets.BT_CLIENT_SECRET }}