mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 16:35:07 +03:00
parent
83627e7d46
commit
cbbee7f718
1 changed files with 7 additions and 5 deletions
|
@ -10,9 +10,11 @@ provides:
|
||||||
- bin/terraform
|
- bin/terraform
|
||||||
|
|
||||||
build:
|
build:
|
||||||
script: |
|
script:
|
||||||
go mod download
|
- run: EXTRA="-mod=mod"
|
||||||
go build -v -ldflags="$LDFLAGS" -o "{{prefix}}"/bin/terraform
|
if: <0.12.20
|
||||||
|
- go mod download
|
||||||
|
- go build -v -ldflags="$LDFLAGS" $EXTRA -o "{{ prefix }}/bin/terraform"
|
||||||
dependencies:
|
dependencies:
|
||||||
go.dev: ^1.18
|
go.dev: ^1.18
|
||||||
env:
|
env:
|
||||||
|
@ -30,6 +32,6 @@ test:
|
||||||
- terraform apply --auto-approve
|
- terraform apply --auto-approve
|
||||||
- out=$(terraform output fixture)
|
- out=$(terraform output fixture)
|
||||||
- run: test "$out" = '"Hello, World!"'
|
- run: test "$out" = '"Hello, World!"'
|
||||||
if: '>=1'
|
if: '>=0.14'
|
||||||
- run: test "$out" = 'Hello, World!'
|
- run: test "$out" = 'Hello, World!'
|
||||||
if: <1
|
if: <0.14
|
||||||
|
|
Loading…
Reference in a new issue