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