Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: use script run for running tests and linter.
Browse files Browse the repository at this point in the history
Signed-off-by: Tiago Natel <[email protected]>
i4ki committed Feb 26, 2024

Verified

This commit was signed with the committer’s verified signature.
i4ki i4k
1 parent f923b95 commit 694d4c4
Showing 70 changed files with 654 additions and 45 deletions.
50 changes: 11 additions & 39 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -5,30 +5,6 @@ name: ci
on: [push]

jobs:
checks:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/setup-go@v4
with:
go-version: '1.21'

- name: Configure asdf and plugins needed
uses: asdf-vm/actions/install@83133f03f5693901c2296a8e622955087dc20267

- name: checking go mod tidyness
run: terramate run --tags golang --changed -- make mod/check

- name: linting code
run: terramate run --tags golang --changed -- make lint

- name: checking license on source code
run: terramate run --tags golang --changed -- make license/check

build_test:
name: Build and Test
runs-on: ${{ matrix.os }}
@@ -53,17 +29,14 @@ jobs:
- name: Configure asdf and plugins needed
uses: asdf-vm/actions/install@83133f03f5693901c2296a8e622955087dc20267

- name: make generate
run: terramate generate
- name: build
run: make build

- name: make test
run: terramate run --tags golang --changed -- make test

- name: make build
run: terramate run --tags golang --changed -- make build
- name: check and test all
run: ./bin/terramate script run --changed --tags=golang -- test all

- name: check cloud info
run: terramate run --tags golang --changed -- ./bin/terramate -vv experimental cloud info
run: ./bin/terramate run --tags golang --no-recursive -- ./bin/terramate -vv experimental cloud info

gh_integration_test:
name: GHA Integration Test
@@ -80,11 +53,11 @@ jobs:
with:
go-version: '1.21'

- name: Configure asdf and plugins needed
uses: asdf-vm/actions/install@83133f03f5693901c2296a8e622955087dc20267
# - name: Configure asdf and plugins needed
# uses: asdf-vm/actions/install@83133f03f5693901c2296a8e622955087dc20267

- name: make test/ci
run: terramate run --tags golang --changed -- make test/ci
run: make test/ci

release_dry_run:
name: Release Dry Run
@@ -101,15 +74,14 @@ jobs:
with:
go-version: '1.21'

- name: Configure asdf and plugins needed
uses: asdf-vm/actions/install@83133f03f5693901c2296a8e622955087dc20267
# - name: Configure asdf and plugins needed
# uses: asdf-vm/actions/install@83133f03f5693901c2296a8e622955087dc20267

- name: release dry run
run: terramate run --tags golang --changed -- make release/dry-run
run: make release/dry-run

ci:
needs:
- checks
- build_test
- gh_integration_test
runs-on: ubuntu-20.04
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v4
- uses: actions/setup-go@v5
with:
go-version: '1.21'

9 changes: 9 additions & 0 deletions cloud/deployment/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2024 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

stack {
name = "deployment"
description = "deployment"
tags = ["golang"]
id = "3705120e-4f6f-42a6-9c45-5a1ff31110da"
}
9 changes: 9 additions & 0 deletions cloud/drift/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2024 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

stack {
name = "drift"
description = "drift"
tags = ["golang"]
id = "8e7c2d56-0a76-42b7-b6c6-a9e85ba3f17e"
}
9 changes: 9 additions & 0 deletions cloud/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2024 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

stack {
name = "cloud"
description = "cloud"
tags = ["golang"]
id = "22a16004-771d-433f-9732-be34e6f3ffbb"
}
9 changes: 9 additions & 0 deletions cloud/stack/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2024 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

stack {
name = "stack"
description = "stack"
tags = ["golang"]
id = "8b514d12-9d03-4fbd-8c1b-4c43207abc0f"
}
9 changes: 9 additions & 0 deletions cloud/testserver/cloudstore/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2024 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

stack {
name = "cloudstore"
description = "cloudstore"
tags = ["golang"]
id = "bd761edc-3458-4388-b29f-a109c6359bac"
}
9 changes: 9 additions & 0 deletions cloud/testserver/cmd/testserver/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2024 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

stack {
name = "testserver"
description = "testserver"
tags = ["golang"]
id = "c8fa9f2e-fc1f-470f-b78a-80f22abe9cb9"
}
9 changes: 9 additions & 0 deletions cloud/testserver/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2024 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

stack {
name = "testserver"
description = "testserver"
tags = ["golang"]
id = "8abcb189-5731-4024-ab62-022b7d3d6a45"
}
9 changes: 9 additions & 0 deletions cmd/terramate-ls/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2024 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

stack {
name = "terramate-ls"
description = "terramate-ls"
tags = ["golang"]
id = "d65b5013-40fb-4af0-a8bb-d73ed29de250"
}
9 changes: 9 additions & 0 deletions cmd/terramate/cli/cliconfig/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2024 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

stack {
name = "cliconfig"
description = "cliconfig"
tags = ["golang"]
id = "b9c060f8-758c-4f96-ab2c-1ad2cc818790"
}
9 changes: 9 additions & 0 deletions cmd/terramate/cli/clitest/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2024 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

stack {
name = "clitest"
description = "clitest"
tags = ["golang"]
id = "2e323174-46b3-44a0-8237-c47871f6d33a"
}
9 changes: 9 additions & 0 deletions cmd/terramate/cli/github/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2024 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

stack {
name = "github"
description = "github"
tags = ["golang"]
id = "3f5750a7-e88b-4305-846a-36a390b4d4ae"
}
9 changes: 9 additions & 0 deletions cmd/terramate/cli/out/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2024 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

stack {
name = "out"
description = "out"
tags = ["golang"]
id = "91e696bb-6b73-4d23-a144-8bf2c09e83cd"
}
9 changes: 9 additions & 0 deletions cmd/terramate/cli/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2024 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

stack {
name = "cli"
description = "cli"
tags = ["golang"]
id = "1de68a08-1a7c-45b8-9712-48cce89df9a2"
}
8 changes: 6 additions & 2 deletions cmd/terramate/e2etests/cloud/generate-e2e-testserver.tm
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
// Copyright 2023 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

generate_file "/cmd/terramate/e2etests/cloud/testdata/cloud.data.json" {
context = root
generate_file "testdata/cloud.data.json" {
stack_filter {
project_paths = [
"/cmd/terramate/e2etests/cloud"
]
}

lets {
well_known = {
Original file line number Diff line number Diff line change
@@ -5,5 +5,5 @@ stack {
name = "basic-drift"
description = "basic-drift"
id = "2530f1b3-2691-48dc-b418-e966f7e1441c"
after = ["../empty"] # only used for visualizing the graph.
tags = ["testdata"]
}
Original file line number Diff line number Diff line change
@@ -5,5 +5,5 @@ stack {
name = "empty"
description = "empty"
id = "04437b1f-27a9-4eab-8e63-1df968b76f6b"
before = ["/testdata/example-stack", "/testdata/testserver"]
tags = ["testdata"]
}
9 changes: 9 additions & 0 deletions cmd/terramate/e2etests/cloud/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2024 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

stack {
name = "cloud"
description = "cloud"
tags = ["golang", "e2e"]
id = "669cf56e-1bbb-423f-8bd3-d4f4dd0c52e1"
}
9 changes: 9 additions & 0 deletions cmd/terramate/e2etests/cmd/helper/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2024 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

stack {
name = "helper"
description = "helper"
tags = ["golang"]
id = "26a4dea4-3d62-4ad7-9ee6-d0b950f9987e"
}
10 changes: 10 additions & 0 deletions cmd/terramate/e2etests/core/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Copyright 2024 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

stack {
name = "core"
description = "core"
tags = ["e2e"]
id = "947bb1ba-8c6d-4e1e-a90f-a6735b86d33a"
wanted_by = ["/cloud"]
}
9 changes: 9 additions & 0 deletions cmd/terramate/e2etests/internal/runner/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2024 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

stack {
name = "runner"
description = "runner"
tags = ["golang"]
id = "e66b6869-7b16-4a81-bbeb-0bb63f9357a5"
}
9 changes: 9 additions & 0 deletions cmd/terramate/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2024 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

stack {
name = "terramate"
description = "terramate"
tags = ["golang"]
id = "9995d678-4d46-4205-986e-16e32d99e7d7"
}
59 changes: 59 additions & 0 deletions commands.tm
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
// Copyright 2023 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

script "test" {
description = "Run Terramate tests"
job {
command = global.cmd.test.command
}
}

script "test" "all" {
description = "Run all Terramate checks and tests"
job {
commands = global.cmd.test.all.commands
}
}

script "create" "stack" {
description = <<-EOF
Creates a new stack.
Usage:
TAGS=golang,mytag STACK_PATH=./stackdir terramate script run -- create stack
EOF
job {
# hack until we support context=root
command = (global.is_root ?
["terramate", "create", "--tags", env.TAGS, env.STACK_PATH] :
["true"])
}
}

# Command variables

globals {
is_root = terramate.stack.path.absolute == "/"
}

# Defines the "tm script run -- test" command.
globals "cmd" "test" {
command = ["go", "test", "-race", "-count=1"]
}

# Defines the "tm script run -- test all" command.
globals "cmd" "test" "all" {
root_commands = [
["make", "mod/check"],
["make", "lint"],
["make", "license/check"],
["terramate", "generate"],
]
commands = tm_concat(
global.is_root ? global.cmd.test.all.root_commands : [],
[tm_concat(global.cmd.test.command, [{
cloud_sync_deployment = false
}])],
)
}
9 changes: 9 additions & 0 deletions config/filter/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2024 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

stack {
name = "filter"
description = "filter"
tags = ["golang"]
id = "8fb2eccc-f0ff-4e77-a371-7cb935a59403"
}
9 changes: 9 additions & 0 deletions config/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2024 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

stack {
name = "config"
description = "config"
tags = ["golang"]
id = "b9ee9772-5640-43e2-bd61-34234ce2b7d7"
}
9 changes: 9 additions & 0 deletions config/tag/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2024 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

stack {
name = "tag"
description = "tag"
tags = ["golang"]
id = "6a4e732a-cf37-46b4-a50d-24794ae78889"
}
9 changes: 9 additions & 0 deletions errors/errlog/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2024 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

stack {
name = "errlog"
description = "errlog"
tags = ["golang"]
id = "f2f27f76-2cd2-4b42-9042-5b4c2b9744d3"
}
9 changes: 9 additions & 0 deletions errors/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2024 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

stack {
name = "errors"
description = "errors"
tags = ["golang"]
id = "ce216b58-a25f-4970-9c94-4540857532f7"
}
9 changes: 9 additions & 0 deletions event/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2024 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

stack {
name = "event"
description = "event"
tags = ["golang"]
id = "2d360bd3-1951-4b49-866f-245b935c332b"
}
9 changes: 9 additions & 0 deletions fs/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2024 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

stack {
name = "fs"
description = "fs"
tags = ["golang"]
id = "449d7c2e-384b-4d7f-a547-e68379ecfd8d"
}
9 changes: 9 additions & 0 deletions generate/genfile/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2024 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

stack {
name = "genfile"
description = "genfile"
tags = ["golang"]
id = "19ae1e9f-c363-433d-96bd-d8abb5c525d3"
}
9 changes: 9 additions & 0 deletions generate/genhcl/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2024 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

stack {
name = "genhcl"
description = "genhcl"
tags = ["golang"]
id = "7d4d7597-2b32-4dd8-8a47-980b5ce707a2"
}
10 changes: 10 additions & 0 deletions generate/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// Copyright 2024 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

stack {
name = "generate"
description = "generate"
tags = ["golang"]
id = "3d713212-6ef9-4c41-9afb-fe3c0e18f8df"
after = ["/globals"]
}
9 changes: 9 additions & 0 deletions git/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2024 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

stack {
name = "git"
description = "git"
tags = ["golang"]
id = "8b5378ad-41a2-4588-bb59-0e29f992deee"
}
9 changes: 9 additions & 0 deletions globals/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2024 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

stack {
name = "globals"
description = "globals"
tags = ["golang"]
id = "6c707b84-6217-4f68-a262-e16910ed029b"
}
9 changes: 9 additions & 0 deletions hcl/ast/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2024 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

stack {
name = "ast"
description = "ast"
tags = ["golang"]
id = "c55d20bc-1ba6-44ce-a3f8-ecb951981437"
}
9 changes: 9 additions & 0 deletions hcl/eval/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2024 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

stack {
name = "eval"
description = "eval"
tags = ["golang"]
id = "ce846cc0-6891-401a-a6c0-169b598dbbee"
}
9 changes: 9 additions & 0 deletions hcl/fmt/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2024 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

stack {
name = "fmt"
description = "fmt"
tags = ["golang"]
id = "4707da1c-40c7-47d4-bf6d-3544a72e0986"
}
9 changes: 9 additions & 0 deletions hcl/info/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2024 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

stack {
name = "info"
description = "info"
tags = ["golang"]
id = "6a5c2713-0fb6-4717-abf4-e9ce0cbeb5ad"
}
9 changes: 9 additions & 0 deletions hcl/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2024 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

stack {
name = "hcl"
description = "hcl"
tags = ["golang"]
id = "2ac23e42-0b2f-403e-855e-8cb328f984a3"
}
9 changes: 9 additions & 0 deletions lets/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2024 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

stack {
name = "lets"
description = "lets"
tags = ["golang"]
id = "00284908-570b-4c11-8701-c8b860615116"
}
9 changes: 9 additions & 0 deletions ls/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2024 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

stack {
name = "ls"
description = "ls"
tags = ["golang"]
id = "b16c33b8-7dd1-4624-af25-0680d86e61f8"
}
8 changes: 8 additions & 0 deletions makefiles/unix.mk
Original file line number Diff line number Diff line change
@@ -42,6 +42,14 @@ test: test/helper build
TM_TEST_ROOT_TEMPDIR=$(tempdir) ./bin/terramate run --no-recursive -- go test -race -count=1 ./...
./bin/helper rm $(tempdir)

## test/script run tests throught script run
.PHONY: test/script
tempdir=$(shell ./bin/helper tempdir)
test/script: test/helper build
# Using `terramate` because it detects and fails if the generated files are outdated.
TM_TEST_ROOT_TEMPDIR=$(tempdir) ./bin/terramate script run --changed --tags=golang -- test
./bin/helper rm $(tempdir)

## graph2png
.PHONY: graph2png
graph2png:
9 changes: 9 additions & 0 deletions mapexpr/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2024 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

stack {
name = "mapexpr"
description = "mapexpr"
tags = ["golang"]
id = "b5a3a333-9fb7-4cf8-84b7-2170b307555b"
}
9 changes: 9 additions & 0 deletions mapexpr/test/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2024 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

stack {
name = "test"
description = "test"
tags = ["golang"]
id = "9da3e8a9-01f9-4120-a046-1760ea342112"
}
9 changes: 9 additions & 0 deletions modvendor/download/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2024 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

stack {
name = "download"
description = "download"
tags = ["golang"]
id = "8054dffa-59bf-441c-b21c-4bdd907b26bb"
}
9 changes: 9 additions & 0 deletions modvendor/manifest/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2024 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

stack {
name = "manifest"
description = "manifest"
tags = ["golang"]
id = "ee6ce6c0-62c8-42a9-899f-d9d251ba6177"
}
9 changes: 9 additions & 0 deletions modvendor/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2024 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

stack {
name = "modvendor"
description = "modvendor"
tags = ["golang"]
id = "1f960e4e-f2b8-4605-a9a5-6b77d51f0057"
}
9 changes: 9 additions & 0 deletions printer/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2024 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

stack {
name = "printer"
description = "printer"
tags = ["golang"]
id = "fd3c1152-e3fa-49b1-8b8d-1f7255aa7c88"
}
9 changes: 9 additions & 0 deletions project/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2024 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

stack {
name = "project"
description = "project"
tags = ["golang"]
id = "b37ca64a-75c1-45e8-b846-77f8c4ab87da"
}
9 changes: 9 additions & 0 deletions run/dag/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2024 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

stack {
name = "dag"
description = "dag"
tags = ["golang"]
id = "82c25e22-9d75-4e11-843f-7062d0080476"
}
9 changes: 9 additions & 0 deletions run/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2024 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

stack {
name = "run"
description = "run"
tags = ["golang"]
id = "ee5226c0-82fd-4917-8357-571331577ae0"
}
9 changes: 9 additions & 0 deletions safeguard/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2024 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

stack {
name = "safeguard"
description = "safeguard"
tags = ["golang"]
id = "50d8af26-0896-48ee-aeb1-2e548faf25a8"
}
9 changes: 9 additions & 0 deletions stack/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2024 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

stack {
name = "stack"
description = "stack"
tags = ["golang"]
id = "1ed6cdd7-edaf-4452-85b2-fe156b784bd7"
}
9 changes: 9 additions & 0 deletions stack/trigger/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2024 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

stack {
name = "trigger"
description = "trigger"
tags = ["golang"]
id = "069383f1-e3a4-4059-9e72-1f45c6a494c5"
}
9 changes: 9 additions & 0 deletions stdlib/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2024 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

stack {
name = "stdlib"
description = "stdlib"
tags = ["golang"]
id = "3eb8b211-634d-4476-85fd-8c346a3cd274"
}
9 changes: 9 additions & 0 deletions strconv/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2024 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

stack {
name = "strconv"
description = "strconv"
tags = ["golang"]
id = "c27a3c7b-3866-42fe-9bfa-0aca229f6b2a"
}
8 changes: 7 additions & 1 deletion terramate.tm
Original file line number Diff line number Diff line change
@@ -9,9 +9,11 @@

terramate {
config {
experiments = ["scripts"]
run {
env {
PATH = "${terramate.root.path.fs.absolute}/bin${global.PS}${env.PATH}"
PATH = "${terramate.root.path.fs.absolute}/bin${global.PS}${env.PATH}"
NO_COLOR = "1"
}
}

@@ -20,6 +22,10 @@ terramate {
check_uncommitted = false
check_remote = false
}

cloud {
organization = "terramate"
}
}
}

9 changes: 9 additions & 0 deletions test/cloud/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2024 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

stack {
name = "cloud"
description = "cloud"
tags = ["golang"]
id = "caef4d2a-a404-4d1a-9b6d-9870a3c14959"
}
9 changes: 9 additions & 0 deletions test/errors/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2024 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

stack {
name = "errors"
description = "errors"
tags = ["golang"]
id = "d4344dc8-8c7d-4776-87a0-4ea331d3faaf"
}
9 changes: 9 additions & 0 deletions test/hclutils/info/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2024 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

stack {
name = "info"
description = "info"
tags = ["golang"]
id = "c834a93a-0058-4b02-bed1-ed58f0ce0240"
}
9 changes: 9 additions & 0 deletions test/hclutils/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2024 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

stack {
name = "hclutils"
description = "hclutils"
tags = ["golang"]
id = "f1cdf97d-5bb1-4e65-ad43-919bc3e4ae6c"
}
9 changes: 9 additions & 0 deletions test/hclwrite/hclutils/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2024 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

stack {
name = "hclutils"
description = "hclutils"
tags = ["golang"]
id = "891ce33e-512b-4a2c-bc26-93401ef28156"
}
9 changes: 9 additions & 0 deletions test/hclwrite/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2024 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

stack {
name = "hclwrite"
description = "hclwrite"
tags = ["golang"]
id = "903529d4-5a12-417f-9f0b-585016e084fe"
}
9 changes: 9 additions & 0 deletions test/ls/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2024 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

stack {
name = "ls"
description = "ls"
tags = ["golang"]
id = "772a6d18-3278-4fbf-b21a-f6c41b9cf867"
}
9 changes: 9 additions & 0 deletions test/sandbox/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2024 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

stack {
name = "sandbox"
description = "sandbox"
tags = ["golang"]
id = "a0e95917-b18d-42e4-b871-cb912e98d59d"
}
9 changes: 9 additions & 0 deletions test/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2024 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

stack {
name = "test"
description = "test"
tags = ["golang"]
id = "7a6046da-af3e-4804-a58a-049b7092047f"
}
9 changes: 9 additions & 0 deletions tf/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2024 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

stack {
name = "tf"
description = "tf"
tags = ["golang"]
id = "5f48e9d4-9ab2-49e8-80a1-13392098c43c"
}
9 changes: 9 additions & 0 deletions versions/stack.tm.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// Copyright 2024 Terramate GmbH
// SPDX-License-Identifier: MPL-2.0

stack {
name = "versions"
description = "versions"
tags = ["golang"]
id = "4c676b8f-b081-4df5-9d29-ff55f596bbb5"
}

0 comments on commit 694d4c4

Please sign in to comment.