-
Notifications
You must be signed in to change notification settings - Fork 8
55 lines (52 loc) · 1.12 KB
/
terratest.yaml
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
49
50
51
52
53
54
55
name: Terratest
on:
push:
paths-ignore:
- '**.md'
- '**.svg'
- '**.drawio'
- '.spelling'
pull_request:
branches:
- main
paths-ignore:
- '**.md'
- '**.svg'
- '**.drawio'
- '.spelling'
jobs:
skip-check:
runs-on: ubuntu-20.04
name: Skip the job?
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/[email protected]
with:
skip_after_successful_duplicate: 'true'
do_not_skip: '["workflow_dispatch", "schedule"]'
terratest:
runs-on: ubuntu-20.04
env:
TAG: "ci"
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18
- name: build
run: make build
- name: build image
run: make image
- name: k3d
uses: AbsaOSS/k3d-action@v2
with:
cluster-name: "coredns-crd"
args: >-
--config=k3d-cluster.yaml
- name: test
run: |
make terratest