Commit Graph

26 Commits

Author SHA1 Message Date
Iain Sproat 2e143d8e88 feat(input): support json schema path as an absolute path (#393)
* feat(input): support json schema path as an absolute path

* update documentation
2024-10-05 08:07:37 +01:00
Iain Sproat ff56aeb1c1 chore(error): improve error handling to include message from cause of error (#307)
* Refresh yarn.lock and node_modules to fix yarn test --coverage
- based on https://github.com/vitest-dev/vitest/issues/4668#issuecomment-1840998029

* HttpError message included in the Error message
2024-01-09 19:58:53 +00:00
Iain Sproat 0e00242543 Align with API and update documentation (#261) 2023-11-12 17:17:56 +00:00
Iain Sproat c5002c79a5 Allow recommended CPU and memory to be NaN values and not error (#260) 2023-11-10 22:35:56 +00:00
Iain Sproat 2f4e3cf8e3 feat(compute resources): suggest recommended limits to CPU and Memory for a Function (#243)
* feat(compute resources): suggest recommended limits to CPU and Memory for a Function

* Adds documentation
2023-11-06 14:48:11 +01:00
Iain Sproat 2cf7d93b74 Add tests and refactor (#231)
- generally improves tests which were not working, and adds them to CI pipeline
- refactors to catch errors
- Rename github action to match current usage
- Informing GitHub of failure is done at the top-level method
- Add tests for network and http errors
- reduce coverage thresholds
2023-10-19 15:45:58 +01:00
Gergő Jedlicska 342c0fb72d update action variables 2023-09-22 12:17:32 +02:00
Gergő Jedlicska 5462de9d2d functionReleaseTag as an input 2023-09-22 11:35:15 +02:00
Gergő Jedlicska ea219ded92 feat: use shorthened git commit id, change output variable to version tag 2023-09-18 17:26:12 +02:00
Gergő Jedlicska 4599eff830 explicitly read from the home directory 2023-08-11 16:04:42 +02:00
Gergő Jedlicska 352365220a move to a file based function input 2023-08-10 17:03:40 +02:00
Gergő Jedlicska ae84132685 Merge branch 'main' of github.com:specklesystems/speckle-automate-github-action 2023-08-10 16:06:40 +02:00
Gergő Jedlicska 937dd88b55 merge error raising 2023-08-10 16:06:11 +02:00
Gergő Jedlicska 0b374bbe38 gergo/simplify (#189)
* refactor to a lean implementation

* update gitignore

* rework retry errors

* add main test example

* remove integration tests

* prettier fix
2023-08-09 09:39:37 +02:00
Gergő Jedlicska d742e579eb remove speckle function path 2023-08-07 16:38:26 +02:00
Iain Sproat d1a6a411ae feat(output): action will output the server host (#183) 2023-08-04 16:32:31 +02:00
Iain Sproat f761cbf854 tests(integration): mock server validates requests (#130)
* tests(integration): mock server validates requests

* chore(logging): improve error message

* more logging improvements

* fix logging which failed if response was not json

* Use createError method in mock server

* Improve mock server error presentation

* Add speckle_function_command to integration test using github action

* fix broken merge; ours strategy was too agressive

* Resolve 'a sequence was not expected' error message in main.yml

* Tidy up commit to match existing in main

* use tag if available, otherwise commit sha.
2023-06-23 15:58:26 +02:00
Gergő Jedlicska 1008ed0ee1 use commmit sha as version 2023-06-22 18:22:19 +02:00
Gergő Jedlicska c04f38c738 add function input schema and command processing, TEMP disable annotations 2023-06-22 16:49:21 +02:00
Iain Sproat 17d75370e8 GitHub action should match server (#94)
* fix(response): should match server
2023-05-19 13:24:09 +01:00
Iain Sproat 6365357c7c fix(post schema): match server expectations (#93)
* fix(post schema): match server expectations
* Update example specklefunction
* remove steps property from specklefunction definition
2023-05-19 13:05:36 +01:00
dependabot[bot] 5ae566b283 build(deps-dev): bump eslint-plugin-vitest from 0.1.5 to 0.2.2 (#74)
* build(deps-dev): bump eslint-plugin-vitest from 0.1.5 to 0.2.2

Bumps [eslint-plugin-vitest](https://github.com/veritem/eslint-plugin-vitest) from 0.1.5 to 0.2.2.
- [Release notes](https://github.com/veritem/eslint-plugin-vitest/releases)
- [Commits](https://github.com/veritem/eslint-plugin-vitest/compare/v0.1.5...v0.2.2)

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

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

* fix(eslint): address newly applied rules

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Iain Sproat <68657+iainsproat@users.noreply.github.com>
2023-05-08 19:00:59 +01:00
dependabot[bot] 405d0af68d build(deps-dev): bump @typescript-eslint/parser from 5.57.0 to 5.57.1 (#32)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.57.0 to 5.57.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.57.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>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Iain Sproat <68657+iainsproat@users.noreply.github.com>
2023-04-05 15:20:35 +01:00
Iain Sproat 336f03c1ed feat(client): The client should retry (#16)
* feat(client): implement backoff retries

* feat(client): retries are implemented with exponential backoff & jitter
2023-03-24 22:04:45 +00:00
Iain Sproat 1fceda4724 test(coverage): 100% test coverage & refactor to vitest and msw (#6)
* chore(refactor): tests use vitest and msw
* fix(directory): Ensure filenames conform to eslint requirements
* chore(yarn): Specify node engine version
* fix(yarn): use the proper nodelinker
* fix(GitHub workflow): yarn install with caching
* docs(README): update to match changes

---------

Co-authored-by: Gergő Jedlicska <gergo@jedlicska.com>
2023-03-23 15:37:32 +00:00
Iain Sproat 938e24921d feat(action): Create a Typescript action (#1) 2023-03-21 23:06:59 +00:00