From ea2a70d4068224541b845684269692ade167fbf5 Mon Sep 17 00:00:00 2001 From: Oscar Izquierdo <25722135+oscar-izval@users.noreply.github.com> Date: Mon, 11 Mar 2024 01:09:26 +0100 Subject: [PATCH] Add tests for language.terraform --- examples/terraform/.test.sh | 3 +++ examples/terraform/devenv.nix | 8 ++++++++ examples/terraform/devenv.yaml | 6 ++++++ 3 files changed, 17 insertions(+) create mode 100755 examples/terraform/.test.sh create mode 100644 examples/terraform/devenv.nix create mode 100644 examples/terraform/devenv.yaml diff --git a/examples/terraform/.test.sh b/examples/terraform/.test.sh new file mode 100755 index 000000000..16df6ade0 --- /dev/null +++ b/examples/terraform/.test.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash +set -ex +terraform --version | grep "1.7.4" diff --git a/examples/terraform/devenv.nix b/examples/terraform/devenv.nix new file mode 100644 index 000000000..90772ee5b --- /dev/null +++ b/examples/terraform/devenv.nix @@ -0,0 +1,8 @@ +{ pkgs, ... }: + +{ + languages.terraform = { + enable = true; + version = "1.7.4"; + }; +} diff --git a/examples/terraform/devenv.yaml b/examples/terraform/devenv.yaml new file mode 100644 index 000000000..5d9357ae1 --- /dev/null +++ b/examples/terraform/devenv.yaml @@ -0,0 +1,6 @@ +allowUnfree: true +inputs: + nixpkgs: + url: github:NixOS/nixpkgs/nixpkgs-unstable + nixpkgs-terraform: + url: github:stackbuilders/nixpkgs-terraform