Compare commits

...
48 Commits
Author SHA1 Message Date
semantic-release-bot d6c3a916ee chore(release): 1.0.2 [skip ci]
## [1.0.2](https://github.com/KengoTODA/actions-setup-docker-compose/compare/v1.0.1...v1.0.2) (2021-09-01)

### Bug Fixes

* Add `docker-compose` to PATH ([#274](https://github.com/KengoTODA/actions-setup-docker-compose/issues/274)) ([ecd3566](https://github.com/KengoTODA/actions-setup-docker-compose/commit/ecd3566c81c4becacafbe206d9897d300a456fbd))
2021-09-01 02:30:38 +00:00
Tibo Delor ecd3566c81 fix: Add docker-compose to PATH (#274)
* Expose command as `docker-compose`

* Format and package
2021-09-01 10:29:50 +08:00
dependabot[bot] f73439ca62 chore(deps-dev): bump @types/node from 16.7.7 to 16.7.9
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.7.7 to 16.7.9.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-31 17:43:35 +00:00
dependabot[bot] bf955761b2 chore(deps-dev): bump @typescript-eslint/parser from 4.29.3 to 4.30.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 4.29.3 to 4.30.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.30.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-31 17:17:44 +00:00
dependabot[bot] 98bf7786db chore(deps-dev): bump @types/node from 16.7.3 to 16.7.7
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.7.3 to 16.7.7.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-30 17:08:00 +00:00
dependabot[bot] 42a7ee2bf3 chore(deps-dev): bump @vercel/ncc from 0.29.2 to 0.30.0
Bumps [@vercel/ncc](https://github.com/vercel/ncc) from 0.29.2 to 0.30.0.
- [Release notes](https://github.com/vercel/ncc/releases)
- [Commits](https://github.com/vercel/ncc/compare/0.29.2...0.30.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>
2021-08-30 17:05:29 +00:00
Kengo TODA 3268a385e5 chore: treat caught error as unknown 2021-08-29 06:39:28 +00:00
dependabot[bot] c0bf818478 chore(deps-dev): bump typescript from 4.3.5 to 4.4.2
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.3.5 to 4.4.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.3.5...v4.4.2)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-29 06:39:28 +00:00
dependabot[bot] 61f4c9c927 chore(deps-dev): bump @types/node from 16.7.2 to 16.7.3
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.7.2 to 16.7.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-27 17:04:54 +00:00
dependabot[bot] 7be9d34ace chore(deps-dev): bump jest from 27.0.6 to 27.1.0
Bumps [jest](https://github.com/facebook/jest) from 27.0.6 to 27.1.0.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/compare/v27.0.6...v27.1.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-27 17:04:22 +00:00
dependabot[bot] 06c58cac8f chore(deps-dev): bump @types/node from 16.7.1 to 16.7.2
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.7.1 to 16.7.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-26 18:04:50 +00:00
dependabot[bot] 15706adc71 chore(deps-dev): bump semantic-release from 17.4.6 to 17.4.7
Bumps [semantic-release](https://github.com/semantic-release/semantic-release) from 17.4.6 to 17.4.7.
- [Release notes](https://github.com/semantic-release/semantic-release/releases)
- [Commits](https://github.com/semantic-release/semantic-release/compare/v17.4.6...v17.4.7)

---
updated-dependencies:
- dependency-name: semantic-release
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-26 17:24:12 +00:00
dependabot[bot] 0050aaf8ea chore(deps-dev): bump semantic-release from 17.4.5 to 17.4.6
Bumps [semantic-release](https://github.com/semantic-release/semantic-release) from 17.4.5 to 17.4.6.
- [Release notes](https://github.com/semantic-release/semantic-release/releases)
- [Commits](https://github.com/semantic-release/semantic-release/compare/v17.4.5...v17.4.6)

---
updated-dependencies:
- dependency-name: semantic-release
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-24 17:09:13 +00:00
dependabot[bot] 4b20200534 chore(deps-dev): bump @typescript-eslint/parser from 4.29.2 to 4.29.3
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 4.29.2 to 4.29.3.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.29.3/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-24 17:06:55 +00:00
dependabot[bot] c29f440249 chore(deps-dev): bump @types/node from 16.6.2 to 16.7.1
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.6.2 to 16.7.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-23 17:06:51 +00:00
semantic-release-bot fd5dac6497 chore(release): 1.0.1 [skip ci]
## [1.0.1](https://github.com/KengoTODA/actions-setup-docker-compose/compare/v1.0.0...v1.0.1) (2021-08-20)

### Bug Fixes

* **deps:** bump @actions/core from 1.4.0 to 1.5.0 ([fc4847a](https://github.com/KengoTODA/actions-setup-docker-compose/commit/fc4847a6b6bba56d8d1830a456ed4f86552f719a))
2021-08-20 17:05:57 +00:00
dependabot[bot] fc4847a6b6 fix(deps): bump @actions/core from 1.4.0 to 1.5.0
Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 1.4.0 to 1.5.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)

---
updated-dependencies:
- dependency-name: "@actions/core"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-20 17:05:01 +00:00
dependabot[bot] 1ed7b13f64 chore(deps-dev): bump @vercel/ncc from 0.29.1 to 0.29.2
Bumps [@vercel/ncc](https://github.com/vercel/ncc) from 0.29.1 to 0.29.2.
- [Release notes](https://github.com/vercel/ncc/releases)
- [Commits](https://github.com/vercel/ncc/compare/0.29.1...0.29.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-20 17:04:49 +00:00
dependabot[bot] ccdcada15b chore(deps-dev): bump @types/node from 16.6.1 to 16.6.2
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.6.1 to 16.6.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-19 17:04:23 +00:00
Kengo TODA c65fe1d313 format: follow the latest eslint 2021-08-18 02:16:08 +00:00
dependabot[bot] b59969572f chore(deps-dev): bump eslint-plugin-github from 4.1.5 to 4.2.0
Bumps [eslint-plugin-github](https://github.com/github/eslint-plugin-github) from 4.1.5 to 4.2.0.
- [Release notes](https://github.com/github/eslint-plugin-github/releases)
- [Commits](https://github.com/github/eslint-plugin-github/compare/v4.1.5...v4.2.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-github
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-18 02:16:08 +00:00
dependabot[bot] 20feb6ca6b chore(deps-dev): bump ts-jest from 27.0.4 to 27.0.5
Bumps [ts-jest](https://github.com/kulshekhar/ts-jest) from 27.0.4 to 27.0.5.
- [Release notes](https://github.com/kulshekhar/ts-jest/releases)
- [Changelog](https://github.com/kulshekhar/ts-jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kulshekhar/ts-jest/compare/v27.0.4...v27.0.5)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-17 17:03:31 +00:00
dependabot[bot] 8f9729bafd chore(deps-dev): bump @typescript-eslint/parser from 4.29.1 to 4.29.2
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 4.29.1 to 4.29.2.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.29.2/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-16 17:40:30 +00:00
dependabot[bot] e69a661151 chore(deps-dev): bump semantic-release from 17.4.4 to 17.4.5
Bumps [semantic-release](https://github.com/semantic-release/semantic-release) from 17.4.4 to 17.4.5.
- [Release notes](https://github.com/semantic-release/semantic-release/releases)
- [Commits](https://github.com/semantic-release/semantic-release/compare/v17.4.4...v17.4.5)

---
updated-dependencies:
- dependency-name: semantic-release
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-16 17:17:25 +00:00
dependabot[bot] dbaeeca239 chore(deps-dev): bump @vercel/ncc from 0.29.0 to 0.29.1
Bumps [@vercel/ncc](https://github.com/vercel/ncc) from 0.29.0 to 0.29.1.
- [Release notes](https://github.com/vercel/ncc/releases)
- [Commits](https://github.com/vercel/ncc/compare/0.29.0...0.29.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-13 17:05:18 +00:00
dependabot[bot] 83bd5c8f0c chore(deps-dev): bump @types/node from 16.6.0 to 16.6.1
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.6.0 to 16.6.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-13 17:04:23 +00:00
dependabot[bot] ed9d846dd6 chore(deps-dev): bump @types/node from 16.4.14 to 16.6.0
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.4.14 to 16.6.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-12 17:03:57 +00:00
dependabot[bot] 1e72e8913e chore(deps-dev): bump @types/node from 16.4.13 to 16.4.14
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.4.13 to 16.4.14.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-11 17:04:43 +00:00
dependabot[bot] 3a786d851e chore(deps-dev): bump @typescript-eslint/parser from 4.29.0 to 4.29.1
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 4.29.0 to 4.29.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.29.1/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-10 17:28:11 +00:00
dependabot[bot] 10811c41a0 chore(deps-dev): bump @types/node from 16.4.12 to 16.4.13
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.4.12 to 16.4.13.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-06 17:04:32 +00:00
dependabot[bot] 870edb4dbb chore(deps-dev): bump @types/node from 16.4.10 to 16.4.12
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.4.10 to 16.4.12.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-04 17:06:18 +00:00
dependabot[bot] 1c2045848b chore(deps-dev): bump eslint from 7.31.0 to 7.32.0
Bumps [eslint](https://github.com/eslint/eslint) from 7.31.0 to 7.32.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.31.0...v7.32.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-02 17:10:01 +00:00
dependabot[bot] bc5f265c70 chore(deps-dev): bump @typescript-eslint/parser from 4.28.5 to 4.29.0
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 4.28.5 to 4.29.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.29.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-02 17:09:24 +00:00
dependabot[bot] 289ec623ba chore(deps-dev): bump @types/node from 16.4.7 to 16.4.10
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.4.7 to 16.4.10.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-02 17:05:54 +00:00
dependabot[bot] d8a47ff825 chore(deps-dev): bump @types/node from 16.4.5 to 16.4.7
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.4.5 to 16.4.7.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-29 17:06:51 +00:00
dependabot[bot] 842d0dc895 chore(deps-dev): bump @types/node from 16.4.3 to 16.4.5
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.4.3 to 16.4.5.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-28 17:05:44 +00:00
dependabot[bot] 9e5483b0cb chore(deps-dev): bump @typescript-eslint/parser from 4.28.4 to 4.28.5
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 4.28.4 to 4.28.5.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.28.5/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-26 17:09:29 +00:00
dependabot[bot] e528386a92 chore(deps-dev): bump @types/node from 16.4.1 to 16.4.3
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.4.1 to 16.4.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-26 17:06:59 +00:00
dependabot[bot] 4f37ff6724 chore(deps-dev): bump @types/node from 16.4.0 to 16.4.1
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.4.0 to 16.4.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-23 17:09:00 +00:00
dependabot[bot] 3e407e92c5 chore(deps-dev): bump eslint-plugin-jest from 24.3.7 to 24.4.0
Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 24.3.7 to 24.4.0.
- [Release notes](https://github.com/jest-community/eslint-plugin-jest/releases)
- [Changelog](https://github.com/jest-community/eslint-plugin-jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/jest-community/eslint-plugin-jest/compare/v24.3.7...v24.4.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-jest
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-22 17:04:18 +00:00
dependabot[bot] 8e5a3fbcb0 chore(deps-dev): bump eslint-plugin-jest from 24.3.6 to 24.3.7
Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 24.3.6 to 24.3.7.
- [Release notes](https://github.com/jest-community/eslint-plugin-jest/releases)
- [Changelog](https://github.com/jest-community/eslint-plugin-jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/jest-community/eslint-plugin-jest/compare/v24.3.6...v24.3.7)

---
updated-dependencies:
- dependency-name: eslint-plugin-jest
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-21 17:04:49 +00:00
dependabot[bot] 8430b10e0a chore(deps-dev): bump ts-jest from 27.0.3 to 27.0.4
Bumps [ts-jest](https://github.com/kulshekhar/ts-jest) from 27.0.3 to 27.0.4.
- [Release notes](https://github.com/kulshekhar/ts-jest/releases)
- [Changelog](https://github.com/kulshekhar/ts-jest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kulshekhar/ts-jest/compare/v27.0.3...v27.0.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-21 17:04:43 +00:00
dependabot[bot] f5f4f7104c chore(deps-dev): bump @types/node from 16.3.3 to 16.4.0
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.3.3 to 16.4.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-21 17:04:09 +00:00
dependabot[bot] f270560816 chore(deps-dev): bump @vercel/ncc from 0.28.6 to 0.29.0
Bumps [@vercel/ncc](https://github.com/vercel/ncc) from 0.28.6 to 0.29.0.
- [Release notes](https://github.com/vercel/ncc/releases)
- [Commits](https://github.com/vercel/ncc/compare/0.28.6...0.29.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>
2021-07-20 08:54:29 +08:00
dependabot[bot] 63f11125bf chore(deps-dev): bump @typescript-eslint/parser from 4.28.3 to 4.28.4
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 4.28.3 to 4.28.4.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.28.4/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-20 08:54:16 +08:00
dependabot[bot] 2166bdeb7a chore(deps-dev): bump eslint from 7.30.0 to 7.31.0
Bumps [eslint](https://github.com/eslint/eslint) from 7.30.0 to 7.31.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.30.0...v7.31.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-19 17:14:57 +00:00
dependabot[bot] aa097f0a0d chore(deps-dev): bump eslint-plugin-github from 4.1.3 to 4.1.5
Bumps [eslint-plugin-github](https://github.com/github/eslint-plugin-github) from 4.1.3 to 4.1.5.
- [Release notes](https://github.com/github/eslint-plugin-github/releases)
- [Commits](https://github.com/github/eslint-plugin-github/compare/v4.1.3...v4.1.5)

---
updated-dependencies:
- dependency-name: eslint-plugin-github
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-19 17:11:55 +00:00
dependabot[bot] 838fbf62b9 chore(deps-dev): bump @types/node from 16.3.2 to 16.3.3
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 16.3.2 to 16.3.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-19 17:05:52 +00:00
7 changed files with 2003 additions and 1412 deletions

No files matched your search

+15 -1
View File
@@ -1,7 +1,21 @@
import {runCommand} from '../src/install'
import {install, runCommand} from '../src/install'
import * as core from '@actions/core'
import {expect, test} from '@jest/globals'
test('runCommand', async () => {
const result = await runCommand('echo foo bar')
expect(result).toBe('foo bar')
})
async function testVersion(version: string) {
const commandPath = await install(version)
core.addPath(commandPath)
const result = await runCommand('docker-compose version')
expect(result).toContain(version)
}
test('Install the right version', async () => {
await testVersion('1.29.1')
await testVersion('1.29.2')
})
+63 -30
View File
@@ -17,12 +17,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.install = exports.runCommand = void 0;
const exec_1 = __nccwpck_require__(514);
const tool_cache_1 = __nccwpck_require__(784);
const exec_1 = __nccwpck_require__(514);
function runCommand(command) {
return __awaiter(this, void 0, void 0, function* () {
let output = '';
const result = yield exec_1.exec(command, [], {
const result = yield (0, exec_1.exec)(command, [], {
listeners: {
stdout: (data) => {
output += data.toString();
@@ -41,9 +41,10 @@ function installOnLinux(version) {
const system = runCommand('uname -s');
const hardware = runCommand('uname -m');
const url = `https://github.com/docker/compose/releases/download/${version}/docker-compose-${yield system}-${yield hardware}`;
const installerPath = yield tool_cache_1.downloadTool(url);
yield exec_1.exec(`chmod +x ${installerPath}`);
return installerPath;
const installerPath = yield (0, tool_cache_1.downloadTool)(url);
yield (0, exec_1.exec)(`chmod +x ${installerPath}`);
const cachedPath = yield (0, tool_cache_1.cacheFile)(installerPath, 'docker-compose', 'docker-compose', version);
return cachedPath;
});
}
function install(version) {
@@ -103,11 +104,11 @@ function run() {
const version = core.getInput('version', {
required: true
});
const commandPath = yield install_1.install(version);
const commandPath = yield (0, install_1.install)(version);
core.addPath(commandPath);
}
catch (error) {
core.setFailed(error.message);
core.setFailed(error instanceof Error ? error.message : 'Unknown error');
}
});
}
@@ -249,7 +250,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
});
};
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.getState = exports.saveState = exports.group = exports.endGroup = exports.startGroup = exports.info = exports.warning = exports.error = exports.debug = exports.isDebug = exports.setFailed = exports.setCommandEcho = exports.setOutput = exports.getBooleanInput = exports.getMultilineInput = exports.getInput = exports.addPath = exports.setSecret = exports.exportVariable = exports.ExitCode = void 0;
exports.getState = exports.saveState = exports.group = exports.endGroup = exports.startGroup = exports.info = exports.notice = exports.warning = exports.error = exports.debug = exports.isDebug = exports.setFailed = exports.setCommandEcho = exports.setOutput = exports.getBooleanInput = exports.getMultilineInput = exports.getInput = exports.addPath = exports.setSecret = exports.exportVariable = exports.ExitCode = void 0;
const command_1 = __nccwpck_require__(351);
const file_command_1 = __nccwpck_require__(717);
const utils_1 = __nccwpck_require__(278);
@@ -427,19 +428,30 @@ exports.debug = debug;
/**
* Adds an error issue
* @param message error issue message. Errors will be converted to string via toString()
* @param properties optional properties to add to the annotation.
*/
function error(message) {
command_1.issue('error', message instanceof Error ? message.toString() : message);
function error(message, properties = {}) {
command_1.issueCommand('error', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message);
}
exports.error = error;
/**
* Adds an warning issue
* Adds a warning issue
* @param message warning issue message. Errors will be converted to string via toString()
* @param properties optional properties to add to the annotation.
*/
function warning(message) {
command_1.issue('warning', message instanceof Error ? message.toString() : message);
function warning(message, properties = {}) {
command_1.issueCommand('warning', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message);
}
exports.warning = warning;
/**
* Adds a notice issue
* @param message notice issue message. Errors will be converted to string via toString()
* @param properties optional properties to add to the annotation.
*/
function notice(message, properties = {}) {
command_1.issueCommand('notice', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message);
}
exports.notice = notice;
/**
* Writes info to log with console.log.
* @param message info message
@@ -573,7 +585,7 @@ exports.issueCommand = issueCommand;
// We use any as a valid input type
/* eslint-disable @typescript-eslint/no-explicit-any */
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.toCommandValue = void 0;
exports.toCommandProperties = exports.toCommandValue = void 0;
/**
* Sanitizes an input into a string so it can be passed into issueCommand safely
* @param input input to sanitize into a string
@@ -588,6 +600,25 @@ function toCommandValue(input) {
return JSON.stringify(input);
}
exports.toCommandValue = toCommandValue;
/**
*
* @param annotationProperties
* @returns The command properties to send with the actual annotation command
* See IssueCommandProperties: https://github.com/actions/runner/blob/main/src/Runner.Worker/ActionCommandManager.cs#L646
*/
function toCommandProperties(annotationProperties) {
if (!Object.keys(annotationProperties).length) {
return {};
}
return {
title: annotationProperties.title,
line: annotationProperties.startLine,
endLine: annotationProperties.endLine,
col: annotationProperties.startColumn,
endColumn: annotationProperties.endColumn
};
}
exports.toCommandProperties = toCommandProperties;
//# sourceMappingURL=utils.js.map
/***/ }),
@@ -5836,7 +5867,7 @@ module.exports = v4;
/***/ ((module) => {
"use strict";
module.exports = require("assert");;
module.exports = require("assert");
/***/ }),
@@ -5844,7 +5875,7 @@ module.exports = require("assert");;
/***/ ((module) => {
"use strict";
module.exports = require("child_process");;
module.exports = require("child_process");
/***/ }),
@@ -5852,7 +5883,7 @@ module.exports = require("child_process");;
/***/ ((module) => {
"use strict";
module.exports = require("crypto");;
module.exports = require("crypto");
/***/ }),
@@ -5860,7 +5891,7 @@ module.exports = require("crypto");;
/***/ ((module) => {
"use strict";
module.exports = require("events");;
module.exports = require("events");
/***/ }),
@@ -5868,7 +5899,7 @@ module.exports = require("events");;
/***/ ((module) => {
"use strict";
module.exports = require("fs");;
module.exports = require("fs");
/***/ }),
@@ -5876,7 +5907,7 @@ module.exports = require("fs");;
/***/ ((module) => {
"use strict";
module.exports = require("http");;
module.exports = require("http");
/***/ }),
@@ -5884,7 +5915,7 @@ module.exports = require("http");;
/***/ ((module) => {
"use strict";
module.exports = require("https");;
module.exports = require("https");
/***/ }),
@@ -5892,7 +5923,7 @@ module.exports = require("https");;
/***/ ((module) => {
"use strict";
module.exports = require("net");;
module.exports = require("net");
/***/ }),
@@ -5900,7 +5931,7 @@ module.exports = require("net");;
/***/ ((module) => {
"use strict";
module.exports = require("os");;
module.exports = require("os");
/***/ }),
@@ -5908,7 +5939,7 @@ module.exports = require("os");;
/***/ ((module) => {
"use strict";
module.exports = require("path");;
module.exports = require("path");
/***/ }),
@@ -5916,7 +5947,7 @@ module.exports = require("path");;
/***/ ((module) => {
"use strict";
module.exports = require("stream");;
module.exports = require("stream");
/***/ }),
@@ -5924,7 +5955,7 @@ module.exports = require("stream");;
/***/ ((module) => {
"use strict";
module.exports = require("string_decoder");;
module.exports = require("string_decoder");
/***/ }),
@@ -5932,7 +5963,7 @@ module.exports = require("string_decoder");;
/***/ ((module) => {
"use strict";
module.exports = require("timers");;
module.exports = require("timers");
/***/ }),
@@ -5940,7 +5971,7 @@ module.exports = require("timers");;
/***/ ((module) => {
"use strict";
module.exports = require("tls");;
module.exports = require("tls");
/***/ }),
@@ -5948,7 +5979,7 @@ module.exports = require("tls");;
/***/ ((module) => {
"use strict";
module.exports = require("util");;
module.exports = require("util");
/***/ })
@@ -5987,7 +6018,9 @@ module.exports = require("util");;
/************************************************************************/
/******/ /* webpack/runtime/compat */
/******/
/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/";/************************************************************************/
/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/";
/******/
/************************************************************************/
/******/
/******/ // startup
/******/ // Load entry module and return exports
+1 -1
View File
@@ -1 +1 @@
{"version":3,"file":"index.js","sources":["../webpack://@kengotoda/actions-setup-docker-compose/./lib/install.js","../webpack://@kengotoda/actions-setup-docker-compose/./lib/main.js","../webpack://@kengotoda/actions-setup-docker-compose/./node_modules/@actions/core/lib/command.js","../webpack://@kengotoda/actions-setup-docker-compose/./node_modules/@actions/core/lib/core.js","../webpack://@kengotoda/actions-setup-docker-compose/./node_modules/@actions/core/lib/file-command.js","../webpack://@kengotoda/actions-setup-docker-compose/./node_modules/@actions/core/lib/utils.js","../webpack://@kengotoda/actions-setup-docker-compose/./node_modules/@actions/exec/lib/exec.js","../webpack://@kengotoda/actions-setup-docker-compose/./node_modules/@actions/exec/lib/toolrunner.js","../webpack://@kengotoda/actions-setup-docker-compose/./node_modules/@actions/http-client/index.js","../webpack://@kengotoda/actions-setup-docker-compose/./node_modules/@actions/http-client/proxy.js","../webpack://@kengotoda/actions-setup-docker-compose/./node_modules/@actions/io/lib/io-util.js","../webpack://@kengotoda/actions-setup-docker-compose/./node_modules/@actions/io/lib/io.js","../webpack://@kengotoda/actions-setup-docker-compose/./node_modules/@actions/tool-cache/lib/manifest.js","../webpack://@kengotoda/actions-setup-docker-compose/./node_modules/@actions/tool-cache/lib/retry-helper.js","../webpack://@kengotoda/actions-setup-docker-compose/./node_modules/@actions/tool-cache/lib/tool-cache.js","../webpack://@kengotoda/actions-setup-docker-compose/./node_modules/@actions/tool-cache/node_modules/@actions/io/lib/io-util.js","../webpack://@kengotoda/actions-setup-docker-compose/./node_modules/@actions/tool-cache/node_modules/@actions/io/lib/io.js","../webpack://@kengotoda/actions-setup-docker-compose/./node_modules/semver/semver.js","../webpack://@kengotoda/actions-setup-docker-compose/./node_modules/tunnel/index.js","../webpack://@kengotoda/actions-setup-docker-compose/./node_modules/tunnel/lib/tunnel.js","../webpack://@kengotoda/actions-setup-docker-compose/./node_modules/uuid/lib/bytesToUuid.js","../webpack://@kengotoda/actions-setup-docker-compose/./node_modules/uuid/lib/rng.js","../webpack://@kengotoda/actions-setup-docker-compose/./node_modules/uuid/v4.js","../webpack://@kengotoda/actions-setup-docker-compose/external \"assert\"","../webpack://@kengotoda/actions-setup-docker-compose/external \"child_process\"","../webpack://@kengotoda/actions-setup-docker-compose/external \"crypto\"","../webpack://@kengotoda/actions-setup-docker-compose/external \"events\"","../webpack://@kengotoda/actions-setup-docker-compose/external \"fs\"","../webpack://@kengotoda/actions-setup-docker-compose/external \"http\"","../webpack://@kengotoda/actions-setup-docker-compose/external \"https\"","../webpack://@kengotoda/actions-setup-docker-compose/external \"net\"","../webpack://@kengotoda/actions-setup-docker-compose/external \"os\"","../webpack://@kengotoda/actions-setup-docker-compose/external \"path\"","../webpack://@kengotoda/actions-setup-docker-compose/external \"stream\"","../webpack://@kengotoda/actions-setup-docker-compose/external \"string_decoder\"","../webpack://@kengotoda/actions-setup-docker-compose/external \"timers\"","../webpack://@kengotoda/actions-setup-docker-compose/external \"tls\"","../webpack://@kengotoda/actions-setup-docker-compose/external \"util\"","../webpack://@kengotoda/actions-setup-docker-compose/webpack/bootstrap","../webpack://@kengotoda/actions-setup-docker-compose/webpack/runtime/compat","../webpack://@kengotoda/actions-setup-docker-compose/webpack/startup"],"sourcesContent":["\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.install = exports.runCommand = void 0;\nconst exec_1 = require(\"@actions/exec\");\nconst tool_cache_1 = require(\"@actions/tool-cache\");\nfunction runCommand(command) {\n return __awaiter(this, void 0, void 0, function* () {\n let output = '';\n const result = yield exec_1.exec(command, [], {\n listeners: {\n stdout: (data) => {\n output += data.toString();\n }\n }\n });\n if (result !== 0) {\n throw new Error(`Failed to run command: ${command}`);\n }\n Line truncated
{"version":3,"file":"index.js","sources":["../webpack://@kengotoda/actions-setup-docker-compose/./lib/install.js","../webpack://@kengotoda/actions-setup-docker-compose/./lib/main.js","../webpack://@kengotoda/actions-setup-docker-compose/./node_modules/@actions/core/lib/command.js","../webpack://@kengotoda/actions-setup-docker-compose/./node_modules/@actions/core/lib/core.js","../webpack://@kengotoda/actions-setup-docker-compose/./node_modules/@actions/core/lib/file-command.js","../webpack://@kengotoda/actions-setup-docker-compose/./node_modules/@actions/core/lib/utils.js","../webpack://@kengotoda/actions-setup-docker-compose/./node_modules/@actions/exec/lib/exec.js","../webpack://@kengotoda/actions-setup-docker-compose/./node_modules/@actions/exec/lib/toolrunner.js","../webpack://@kengotoda/actions-setup-docker-compose/./node_modules/@actions/http-client/index.js","../webpack://@kengotoda/actions-setup-docker-compose/./node_modules/@actions/http-client/proxy.js","../webpack://@kengotoda/actions-setup-docker-compose/./node_modules/@actions/io/lib/io-util.js","../webpack://@kengotoda/actions-setup-docker-compose/./node_modules/@actions/io/lib/io.js","../webpack://@kengotoda/actions-setup-docker-compose/./node_modules/@actions/tool-cache/lib/manifest.js","../webpack://@kengotoda/actions-setup-docker-compose/./node_modules/@actions/tool-cache/lib/retry-helper.js","../webpack://@kengotoda/actions-setup-docker-compose/./node_modules/@actions/tool-cache/lib/tool-cache.js","../webpack://@kengotoda/actions-setup-docker-compose/./node_modules/@actions/tool-cache/node_modules/@actions/io/lib/io-util.js","../webpack://@kengotoda/actions-setup-docker-compose/./node_modules/@actions/tool-cache/node_modules/@actions/io/lib/io.js","../webpack://@kengotoda/actions-setup-docker-compose/./node_modules/semver/semver.js","../webpack://@kengotoda/actions-setup-docker-compose/./node_modules/tunnel/index.js","../webpack://@kengotoda/actions-setup-docker-compose/./node_modules/tunnel/lib/tunnel.js","../webpack://@kengotoda/actions-setup-docker-compose/./node_modules/uuid/lib/bytesToUuid.js","../webpack://@kengotoda/actions-setup-docker-compose/./node_modules/uuid/lib/rng.js","../webpack://@kengotoda/actions-setup-docker-compose/./node_modules/uuid/v4.js","../webpack://@kengotoda/actions-setup-docker-compose/external \"assert\"","../webpack://@kengotoda/actions-setup-docker-compose/external \"child_process\"","../webpack://@kengotoda/actions-setup-docker-compose/external \"crypto\"","../webpack://@kengotoda/actions-setup-docker-compose/external \"events\"","../webpack://@kengotoda/actions-setup-docker-compose/external \"fs\"","../webpack://@kengotoda/actions-setup-docker-compose/external \"http\"","../webpack://@kengotoda/actions-setup-docker-compose/external \"https\"","../webpack://@kengotoda/actions-setup-docker-compose/external \"net\"","../webpack://@kengotoda/actions-setup-docker-compose/external \"os\"","../webpack://@kengotoda/actions-setup-docker-compose/external \"path\"","../webpack://@kengotoda/actions-setup-docker-compose/external \"stream\"","../webpack://@kengotoda/actions-setup-docker-compose/external \"string_decoder\"","../webpack://@kengotoda/actions-setup-docker-compose/external \"timers\"","../webpack://@kengotoda/actions-setup-docker-compose/external \"tls\"","../webpack://@kengotoda/actions-setup-docker-compose/external \"util\"","../webpack://@kengotoda/actions-setup-docker-compose/webpack/bootstrap","../webpack://@kengotoda/actions-setup-docker-compose/webpack/runtime/compat","../webpack://@kengotoda/actions-setup-docker-compose/webpack/startup"],"sourcesContent":["\"use strict\";\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.install = exports.runCommand = void 0;\nconst tool_cache_1 = require(\"@actions/tool-cache\");\nconst exec_1 = require(\"@actions/exec\");\nfunction runCommand(command) {\n return __awaiter(this, void 0, void 0, function* () {\n let output = '';\n const result = yield (0, exec_1.exec)(command, [], {\n listeners: {\n stdout: (data) => {\n output += data.toString();\n }\n }\n });\n if (result !== 0) {\n throw new Error(`Failed to run command: ${command}`);\n }\n Line truncated
+1913 -1375
View File
File diff suppressed because it is too large. Load diff
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@kengotoda/actions-setup-docker-compose",
"version": "1.0.0",
"version": "1.0.2",
"description": "the GitHub Action setting up docker-compose command",
"main": "lib/main.js",
"private": false,
@@ -37,7 +37,7 @@
"@semantic-release/git": "^9.0.0",
"@types/node": "^16.3.2",
"@typescript-eslint/parser": "^4.28.3",
"@vercel/ncc": "^0.28.6",
"@vercel/ncc": "^0.30.0",
"eslint": "^7.30.0",
"eslint-plugin-github": "^4.1.3",
"eslint-plugin-jest": "^24.3.6",
+8 -2
View File
@@ -1,5 +1,5 @@
import {cacheFile, downloadTool} from '@actions/tool-cache'
import {exec} from '@actions/exec'
import {downloadTool} from '@actions/tool-cache'
export async function runCommand(command: string): Promise<string> {
let output = ''
@@ -22,7 +22,13 @@ async function installOnLinux(version: string): Promise<string> {
const url = `https://github.com/docker/compose/releases/download/${version}/docker-compose-${await system}-${await hardware}`
const installerPath = await downloadTool(url)
await exec(`chmod +x ${installerPath}`)
return installerPath
const cachedPath = await cacheFile(
installerPath,
'docker-compose',
'docker-compose',
version
)
return cachedPath
}
export async function install(version: string): Promise<string> {
+1 -1
View File
@@ -9,7 +9,7 @@ async function run(): Promise<void> {
const commandPath = await install(version)
core.addPath(commandPath)
} catch (error) {
core.setFailed(error.message)
core.setFailed(error instanceof Error ? error.message : 'Unknown error')
}
}