From 9c9d03a24c7dc790ce859e3d2f62d1b0d3b9cb54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Krzemi=C5=84ski?= <3110813+krzema12@users.noreply.github.com> Date: Mon, 9 Sep 2024 13:40:31 +0200 Subject: [PATCH] Add typings and validation workflow (#257) --- .github/workflows/validate-action-typings.yml | 15 +++++ action-types.yml | 57 +++++++++++++++++++ 2 files changed, 72 insertions(+) create mode 100644 .github/workflows/validate-action-typings.yml create mode 100644 action-types.yml diff --git a/.github/workflows/validate-action-typings.yml b/.github/workflows/validate-action-typings.yml new file mode 100644 index 000000000..1eb0f1c2d --- /dev/null +++ b/.github/workflows/validate-action-typings.yml @@ -0,0 +1,15 @@ +name: Validate action typings + +on: + push: + branches: [master] + pull_request: + branches: [master] + workflow_dispatch: + +jobs: + validate-typings: + runs-on: "ubuntu-latest" + steps: + - uses: actions/checkout@v4 + - uses: typesafegithub/github-actions-typing@v1 diff --git a/action-types.yml b/action-types.yml new file mode 100644 index 000000000..e199a6627 --- /dev/null +++ b/action-types.yml @@ -0,0 +1,57 @@ +inputs: + name: + type: string + tool: + type: enum + allowed-values: + - cargo + - go + - benchmarkjs + - pytest + - googlecpp + - catch2 + - julia + - jmh + - benchmarkdotnet + - benchmarkluau + - customBiggerIsBetter + - customSmallerIsBetter + output-file-path: + type: string + gh-pages-branch: + type: string + gh-repository: + type: string + benchmark-data-dir-path: + type: string + github-token: + type: string + ref: + type: string + auto-push: + type: boolean + skip-fetch-gh-pages: + type: boolean + comment-always: + type: boolean + summary-always: + type: boolean + save-data-file: + type: boolean + comment-on-alert: + type: boolean + alert-threshold: + type: string + fail-on-alert: + type: boolean + fail-threshold: + type: string + alert-comment-cc-users: + type: list + separator: ',' + list-item: + type: string + external-data-json-path: + type: string + max-items-in-chart: + type: integer