mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-04-16 03:01:30 -04:00
* Migrate set-output to GITHUB_OUTPUT Signed-off-by: Scott Macfarlane <smacfarlane@hashicorp.com> * Migrate terraform to CRT * Update ci branches & ci notification channel * Use version/VERSION file to parse version * Remove fetch raw version script and update pipeline to run on current branch * PR feedback: cgo-enabled now required flag, updated comments & include promotion steps in ci.hcl * Update version for main --------- Signed-off-by: Scott Macfarlane <smacfarlane@hashicorp.com> Co-authored-by: Scott Macfarlane <smacfarlane@hashicorp.com> Co-authored-by: emilymianeil <eneil@hashicorp.com>
15 lines
530 B
Bash
Executable File
15 lines
530 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -uo pipefail
|
|
|
|
if [[ $arch == 'arm' || $arch == 'arm64' ]]
|
|
then
|
|
export DIR=$(mktemp -d)
|
|
unzip -d $DIR "${e2e_cache_path}/terraform-e2etest_${os}_${arch}.zip"
|
|
unzip -d $DIR "./terraform_${version}_${os}_${arch}.zip"
|
|
sudo chmod +x $DIR/e2etest
|
|
docker run --platform=linux/arm64 -v $DIR:/src -w /src arm64v8/alpine ./e2etest -test.v
|
|
else
|
|
unzip "${e2e_cache_path}/terraform-e2etest_${os}_${arch}.zip"
|
|
unzip "./terraform_${version}_${os}_${arch}.zip"
|
|
TF_ACC=1 ./e2etest -test.v
|
|
fi |