Skip to content

Latest commit

 

History

History
 
 

workflows

GitHub Workflows

Using the setup-terraform action

By default, the setup-terraform action adds a wrapper for the terraform command that allows passing results to subsequent steps. This will prevent using the output of a terraform command as the input to another command in the same step.

The wrapper can be turned off by using

steps:
- uses: hashicorp/setup-terraform@v1
  with:
    terraform_wrapper: false

Testing workflows locally

The tool act can be used to test GitHub workflows locally. The default container intentionally does not have feature parity with the containers used in GitHub due to the size of a full container.

The file ./actrc configures act to use a fully-featured container.

Running the static checker on workflows

Check your code for errors in syntax, usage, etc. using the following directive found in the GNUMakefile in this repository.

% make gh-workflows-lint