Commit graph

21 commits

Author SHA1 Message Date
dependabot[bot]
71c625de8e
Bump jest from 29.7.0 to 30.0.3 (#493)
* Bump jest from 29.7.0 to 30.0.3

Bumps [jest](https://github.com/jestjs/jest/tree/HEAD/packages/jest) from 29.7.0 to 30.0.3.
- [Release notes](https://github.com/jestjs/jest/releases)
- [Changelog](https://github.com/jestjs/jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/jestjs/jest/commits/v30.0.3/packages/jest)

---
updated-dependencies:
- dependency-name: jest
  dependency-version: 30.0.3
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* jest30 updates

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Austin Valle <austinvalle@gmail.com>
2025-06-30 23:34:03 -04:00
Austin Valle
99441ecd44
wrapper: Write stdout/stderr data to stream when received (#410)
* wrapper: write stdout/stderr data to stream when received

* add a delay test

* temp comment

* uncomment actions

* add changelog
2024-05-07 09:51:25 -04:00
Austin Valle
2417443146
Remove husky tool + fix lint error (#394)
* remove husky

* fix tests
2024-01-31 14:11:44 -05:00
Oliver Ford
4dff81de7e
Fix output malformed when wrapper enabled (#367)
* Fix output malformed when wrapper enabled

Presently using a command such as `terraform output -json | jq` does not
work with the wrapper enabled, as it is by default.

In order to consume terraform's output having set it up with this
Action, it is necessary either to disable the wrapper (`with:
terraform_wrapper: false`) or run it in its own Actions step with an
explicit `id` (e.g. `id: foo`) so that it can be referred to and consumed
(`${{steps.foo.outputs.stdout}}` et al.) in later steps.

This seems to be the result of much confusion (issues passim) and is not
at all easy (#338) to debug/diagnose and come to the realisation that
it's due to the wrapper, or even that such a thing exists.

@austinvalle identified the issue as being due to the `@actions/exec`
package writing the spawned command to stdout (along with then its
actual stdout). This has previously been reported upstream in
actions/toolkit#649; I've proposed actions/toolkit#1573 to fix it.

This commit aims to address the issue for `setup-terraform` in the
meantime by silencing `@actions/exec` and then writing out to stdout &
stderr from the listener buffers, which it writes to without this
additional logging.

Closes #20, #80, #85, #149, #338, and probably more.

* add test for stdout with jq

* update test name

* remove debug lines and add changelog

* add additional note about the bug fix to wrapper

---------

Co-authored-by: Austin Valle <austinvalle@gmail.com>
2023-10-27 14:05:58 -04:00
Austin Valle
5aa9444145
[COMPLIANCE] Add copyright and license headers (#327)
* add copywrite changes

* extra slash

* [COMPLIANCE] Add copyright and license headers

* removed incorrect license

* reverted /dist

* add action.yml to copywrite ignore

* revert

* remove dist changes

* revert dist
2023-06-05 11:20:41 -04:00
Brian Flad
d3026307a0
Remove wrapper package.json (#302)
Reference: https://github.com/hashicorp/setup-terraform/issues/290

The `wrapper` directory contains the JavaScript wrapper for the Terraform binary. It currently contains a `package.json` and lock file, however this code is not packaged and released separately. Having the separate package makes it unnecessarily difficult to ensure the subdirectory is built correctly and dependencies are up to date.

This change removes the `wrapper` package files and consolidates the test, lint, and build logic into the main `package.json`.
2023-02-09 10:36:54 -05:00
Brian Flad
1d777b53ee
deps: Bump all development dependencies and fix check-dist (#301)
Reference: https://github.com/hashicorp/setup-terraform/pull/285
Reference: https://github.com/hashicorp/setup-terraform/pull/286
Reference: https://github.com/hashicorp/setup-terraform/pull/288
Reference: https://github.com/hashicorp/setup-terraform/pull/291
Reference: https://github.com/hashicorp/setup-terraform/pull/292

```shell
npm install '@vercel/ncc@0.36.1'
npm install 'husky@8.0.3'
npm install 'jest@29.4.1'
npm install 'nock@13.3.0'
pushd wrapper
npm install '@vercel/ncc@0.36.1'
npm install 'jest@29.4.1'
npm audit fix # json5@1.0.2 security fix
popd
npm run build
```
2023-02-09 10:05:39 -05:00
dependabot[bot]
4a9d2ae03e
Bump @vercel/ncc from 0.33.3 to 0.34.0 in /wrapper
Bumps [@vercel/ncc](https://github.com/vercel/ncc) from 0.33.3 to 0.34.0.
- [Release notes](https://github.com/vercel/ncc/releases)
- [Commits](https://github.com/vercel/ncc/compare/0.33.3...0.34.0)

---
updated-dependencies:
- dependency-name: "@vercel/ncc"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-15 07:11:42 +00:00
dependabot[bot]
3f2da7835b
Bump jest from 27.5.1 to 29.3.1 in /wrapper
Bumps [jest](https://github.com/facebook/jest/tree/HEAD/packages/jest) from 27.5.1 to 29.3.1.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/commits/v29.3.1/packages/jest)

---
updated-dependencies:
- dependency-name: jest
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-15 07:04:50 +00:00
Benjamin Bennett
73d00bf3fd Updating dependencies in /wrapper/package.json and rebuilding 2022-10-26 18:08:21 +01:00
dependabot[bot]
b3a43c3034
Bump @actions/core from 1.6.0 to 1.9.1 in /wrapper (#236)
* Bump @actions/core from 1.6.0 to 1.9.1 in /wrapper

Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 1.6.0 to 1.9.1.
- [Release notes](https://github.com/actions/toolkit/releases)
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core)

---
updated-dependencies:
- dependency-name: "@actions/core"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: James Pogran <jpogran@outlook.com>
2022-09-16 11:53:05 -04:00
Yordan Ibishev
62a66eef78
Support detailed exit codes. (#125)
* feat(action): Support detailed exit codes. 

This should allow plans to succeed using the terraform_wrapper functionality whenever an exit code of 2 is returned.
https://www.terraform.io/docs/cli/commands/plan.html#detailed-exitcode

- This is useful for adding custom steps in our GitHub action workflows.
- Not a Javascript developer so Im not sure how valid the OR condition is.

Co-authored-by: James Pogran <jpogran@outlook.com>
2022-05-18 08:47:46 -04:00
Rui Chen
d5cbd3fe79
Upgrade Nodejs runtime from 12 to 16 (#170)
This updates the NodeJS runtime version from 12 to 16. NodeJS 12 is EOL on 4/30/2022. NodeJS 16 is supported on all Github Actions Runners v2.285.0 or later.

Signed-off-by: Rui Chen <rui@chenrui.dev>
Co-authored-by: James Pogran <jpogran@outlook.com>
2022-04-08 08:52:09 -04:00
dependabot[bot]
c584f13cd4
Bump minimist from 1.2.5 to 1.2.6 in /wrapper (#169)
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-30 12:54:17 -04:00
James Pogran
d1d9ce119f
Bump @actions/io from 1.1.0 to 1.1.1 (#162)
Bumps [@actions/io](https://github.com/actions/toolkit/tree/HEAD/packages/io) from 1.1.0 to 1.1.1.
- [Release notes](https://github.com/actions/toolkit/releases)
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/io/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/@actions/tool-cache@1.1.1/packages/io)
2022-03-08 11:10:40 -05:00
James Pogran
93b480fa28
Bump @actions/exec from 1.0.4 to 1.1.0 (#161)
* Bump @actions/exec from 1.0.4 to 1.1.0

Bumps [@actions/exec](https://github.com/actions/toolkit/tree/HEAD/packages/exec) from 1.0.4 to 1.1.0.
- [Release notes](https://github.com/actions/toolkit/releases)
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/exec/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/exec)
2022-03-08 10:57:57 -05:00
James Pogran
5369c899c5
Bump @actions/core from 1.2.7 to 1.6.0 (#160)
Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 1.2.7 to 1.6.0.
- [Release notes](https://github.com/actions/toolkit/releases)
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core)
2022-03-08 10:42:25 -05:00
James Pogran
ca6738af70
Bump development dependencies (#153)
Bumps [semistandard](https://github.com/standard/semistandard) from 14.2.0 to 16.0.1.
- [Release notes](https://github.com/standard/semistandard/releases/tag/v16.0.1)
- [Commits](standard/semistandard@v14.2.0...v16.0.1)

Bumps [nock](https://github.com/nock/nock) from 7.4.0 to 7.5.0.
- [Release notes](https://github.com/nock/nock/releases/tag/v13.2.4)
- [Commits](nock/nock@v13.0.11...v13.2.4)

Bumps [jest](https://github.com/facebook/jest) from 26.6.3 to 27.5.1.
- [Release notes](https://github.com/facebook/jest/releases/tag/v27.5.1)
- [Commits](facebook/jest@v26.6.3...v27.5.1)

Bumps [husky](https://github.com/typicode/husky) from 6.0.0 to 7.0.4.
- [Release notes](https://github.com/typicode/husky/releases/tag/v7.0.4)
- [Commits](typicode/husky@v6.0.0...v7.0.4)

Bumps [ncc](https://github.com/vercel/ncc) from 0.28.5 to 0.33.3.
- [Release notes](https://github.com/vercel/ncc/releases/tag/0.33.3)
- [Commits](vercel/ncc@0.28.5...0.33.3)
2022-03-04 10:53:57 -05:00
Audrey Eschright
ccd38093bb
Upgrade dependencies and clean up package config (#63) 2020-10-30 13:07:27 -07:00
dependabot[bot]
ae603c4b3a
Bump lodash from 4.17.15 to 4.17.19 in /wrapper (#28)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-08 13:54:09 -04:00
Matthew Sanabria
cd5e05ffbf Initial commit 2020-04-25 19:46:30 -04:00