Skip to content

add iterative example #395

add iterative example

add iterative example #395

name: Acceptance
on:
push:
branches:
- "*"
pull_request:
jobs:
tests:
name: Tests
runs-on: ubuntu-latest
concurrency:
group: global
timeout-minutes: 60
steps:
- name: Install Go 1.19
uses: actions/setup-go@v3
with:
go-version: 1.19
id: go
- uses: actions/checkout@v3
- name: Run tests
run: |
TF_ACC=1 go test -v ./... -parallel=32 -timeout=30m
env:
CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }}
CLOUDSMITH_NAMESPACE: terraform-provider-testing
- name: Notify Slack on Success
if: success()
uses: rtCamp/action-slack-notify@v2.0.2
env:
SLACK_ICON: https://avatars0.githubusercontent.com/u/44036562?s=200&v=4
SLACK_TITLE: Workflow Succeeded
SLACK_USERNAME: Github Actions
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
- name: Notify Slack on Failure
if: failure()
uses: rtCamp/action-slack-notify@v2.0.2
env:
SLACK_COLOR: danger
SLACK_ICON: https://avatars0.githubusercontent.com/u/44036562?s=200&v=4
SLACK_TITLE: Workflow Failed
SLACK_USERNAME: Github Actions
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}