-
Notifications
You must be signed in to change notification settings - Fork 59
85 lines (82 loc) · 2.09 KB
/
test.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: test
permissions:
contents: read
on:
push:
branches:
- master
paths-ignore:
- '**.md'
pull_request:
branches:
- master
paths-ignore:
- '**.md'
concurrency:
group: test-${{ github.head_ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ${{ matrix.os }}
timeout-minutes: 5
strategy:
matrix:
os: [ubuntu-latest, macOS-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: '.go-version'
- name: test
run: make test
testacc_terraform:
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
terraform:
- 1.10.0
- 1.9.8
- 0.12.31
env:
TERRAFORM_VERSION: ${{ matrix.terraform }}
steps:
- uses: actions/checkout@v4
- name: docker build
run: docker compose build
- name: start localstack
run: |
docker compose up -d localstack
docker compose run --rm dockerize -wait tcp://localstack:4566 -timeout 60s
docker compose exec -T localstack /etc/localstack/init/wait_s3_bucket_exists.sh
- name: terraform --version
run: docker compose run --rm tfmigrate terraform --version
- name: testacc
run: docker compose run --rm tfmigrate make testacc
testacc_opentofu:
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
opentofu:
- 1.6.3
- 1.7.5
- 1.8.5
env:
OPENTOFU_VERSION: ${{ matrix.opentofu }}
TFMIGRATE_EXEC_PATH: tofu
steps:
- uses: actions/checkout@v4
- name: docker build
run: docker compose build
- name: start localstack
run: |
docker compose up -d localstack
docker compose run --rm dockerize -wait tcp://localstack:4566 -timeout 60s
docker compose exec -T localstack /etc/localstack/init/wait_s3_bucket_exists.sh
- name: tofu --version
run: docker compose run --rm tfmigrate tofu --version
- name: testacc
run: docker compose run --rm tfmigrate make testacc