Actions-add-node-template #5

Merged
stanislav.melnichuk merged 4 commits from Actions-add-node-template into master 2023-12-22 10:30:39 +00:00
1 changed files with 15 additions and 4 deletions
Showing only changes of commit 08596cf178 - Show all commits

View File

@ -2,6 +2,18 @@ name: Pull request check
on:
workflow_call:
inputs:
node-version:
description: "Set node version"
default: 20
required: true
stanislav.melnichuk marked this conversation as resolved

this can be false, because we already set default

this can be false, because we already set default
type: string
yarn-commands:
description: "yarn-commands"
default: |-
yarn install
yarn test
required: true

this is the same, we already put default value.

this is the same, we already put default value.
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