Dotcom Acceptance Tests (All) #204
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: Dotcom Acceptance Tests (All) | |
on: | |
schedule: | |
# ┌───────────── minute (0 - 59) | |
# │ ┌───────────── hour (0 - 23) | |
# │ │ ┌───────────── day of the month (1 - 31) | |
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC) | |
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT) | |
# * * * * * | |
- cron: '0 0 * * 3' | |
jobs: | |
acceptance-tests-anonymous: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 | |
with: | |
ref: ${{ github.event.pull_request.head.ref }} | |
fetch-depth: 2 | |
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0 | |
with: | |
go-version-file: 'go.mod' | |
cache: true | |
- name: Acceptance Tests (Anonymous) | |
uses: terraformtesting/acceptance-tests@66f4842d934555dde0f59bf1a00abd0fc710ece4 # v2.2.0 | |
with: | |
TF_LOG: INFO | |
RUN_ALL: true | |
acceptance-tests-individual: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 | |
with: | |
ref: ${{ github.event.pull_request.head.ref }} | |
fetch-depth: 2 | |
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0 | |
with: | |
go-version-file: 'go.mod' | |
cache: true | |
- name: Acceptance Tests (Individual) | |
id: acceptance-tests-individual | |
uses: terraformtesting/acceptance-tests@66f4842d934555dde0f59bf1a00abd0fc710ece4 # v2.2.0 | |
with: | |
TF_LOG: INFO | |
RUN_ALL: true | |
GITHUB_OWNER: github-terraform-test-user | |
GITHUB_TEST_USER_TOKEN: ${{ secrets.DOTCOM_TEST_USER_TOKEN }} | |
GITHUB_TEST_ORGANIZATION: terraformtesting | |
- name: Failed Acceptance Tests (Individual) | |
if: ${{ failure() }} | |
uses: terraformtesting/acceptance-tests@66f4842d934555dde0f59bf1a00abd0fc710ece4 # v2.2.0 | |
with: | |
TF_LOG: DEBUG | |
RUN_ALLOWED: ${{ steps.acceptance-tests-individual.outputs.failed }} | |
GITHUB_OWNER: github-terraform-test-user | |
GITHUB_TEST_USER_TOKEN: ${{ secrets.DOTCOM_TEST_USER_TOKEN }} | |
GITHUB_TEST_ORGANIZATION: terraformtesting | |
acceptance-tests-organization: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 | |
with: | |
ref: ${{ github.event.pull_request.head.ref }} | |
fetch-depth: 2 | |
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0 | |
with: | |
go-version-file: 'go.mod' | |
cache: true | |
- name: Acceptance Tests (Organization) | |
id: acceptance-tests-organization | |
uses: terraformtesting/acceptance-tests@66f4842d934555dde0f59bf1a00abd0fc710ece4 # v2.2.0 | |
with: | |
TF_LOG: INFO | |
RUN_ALL: true | |
GITHUB_ORGANIZATION: terraformtesting | |
GITHUB_TEST_USER_TOKEN: ${{ secrets.DOTCOM_TEST_USER_TOKEN }} | |
GITHUB_TEST_OWNER: github-terraform-test-user | |
- name: Failed Acceptance Tests (Organization) | |
uses: terraformtesting/acceptance-tests@66f4842d934555dde0f59bf1a00abd0fc710ece4 # v2.2.0 | |
if: ${{ failure() }} | |
with: | |
TF_LOG: DEBUG | |
RUN_ALLOWED: ${{ steps.acceptance-tests-organization.outputs.failed }} | |
GITHUB_ORGANIZATION: terraformtesting | |
GITHUB_TEST_USER_TOKEN: ${{ secrets.DOTCOM_TEST_USER_TOKEN }} | |
GITHUB_TEST_OWNER: github-terraform-test-user |