E2E on HCP Terraform Operator #2
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: E2E on Terraform Cloud | |
on: | |
schedule: | |
- cron: '30 5 * * 0' | |
push: | |
branches: | |
- main | |
paths: | |
- 'controllers/**' | |
workflow_dispatch: | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 | |
with: | |
fetch-depth: 0 | |
- name: Setup Go | |
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1 | |
with: | |
go-version-file: 'go.mod' | |
- name: Run end-to-end test suite | |
run: make test | |
env: | |
TFC_OAUTH_TOKEN: ${{ secrets.TFC_OAUTH_TOKEN }} | |
TFC_ORG: ${{ secrets.TFC_ORG }} | |
TFC_TOKEN: ${{ secrets.TFC_TOKEN }} | |
TFC_VCS_REPO: ${{ secrets.TFC_VCS_REPO }} |