forked from terraform-ibm-modules/terraform-ibm-vpc
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (39 loc) · 1.44 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: "test-scheduler"
on:
workflow_dispatch:
schedule:
- cron: '*/30 5 * * *' # triggers the workflow every day at 5:30 UTC
# ┌───────────── 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)
# │ │ │ │ │
# │ │ │ │ │
# │ │ │ │ │
# * * * * *
jobs:
continuous-tests:
name: Run Test cases
runs-on: ubuntu-latest
steps:
-
name: checkout # action checks-out your repository under $GITHUB_WORKSPACE, so your workflow can access it.
uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: 1.15
- name: Install dependencies
run: |
go get -u "github.com/gruntwork-io/terratest/modules/random"
go get -u "github.com/gruntwork-io/terratest/modules/terraform"
-
name: setup terraform
uses: hashicorp/setup-terraform@v1 # sets up Terraform CLI in your GitHub Actions workflow
with:
terraform_version: 0.13.0
- name: Run Test
working-directory: test
run: go test -v ./...
env:
IC_API_KEY: ${{ secrets.ACCESS_KEY }}