From 08596cf178f8ed3f5715916078528e68286e3e2b Mon Sep 17 00:00:00 2001 From: sarmstrong Date: Fri, 22 Dec 2023 12:56:58 +0300 Subject: [PATCH] Add multi-project support. --- .../node-pull-request-check-template.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/node-pull-request-check-template.yml b/.gitea/workflows/node-pull-request-check-template.yml index 164408c..cd9dfeb 100644 --- a/.gitea/workflows/node-pull-request-check-template.yml +++ b/.gitea/workflows/node-pull-request-check-template.yml @@ -2,6 +2,18 @@ name: Pull request check on: workflow_call: inputs: + node-version: + description: "Set node version" + default: 20 + required: true + type: string + yarn-commands: + description: "yarn-commands" + default: |- + yarn install + yarn test + required: true + type: string notification_enabled: description: "Включение оповещений о разворачивании, требуется иметь url для оповещений в vault" default: false @@ -40,12 +52,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: https://github.com/actions/checkout@v3 - - name: Use Node.js 20 + - name: Use Node.js ${{ inputs.node-version }} uses: https://github.com/actions/setup-node@v3 with: - node-version: 20 - - run: yarn install - - run: yarn test + node-version: ${{ inputs.node-version }} + - run: ${{ inputs.yarn-commands }} - name: dockerfile lint check uses: https://github.com/hadolint/hadolint-action@v3.1.0