Actions-add-node-template #5
|
@ -2,6 +2,18 @@ name: Pull request check
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
|
node-version:
|
||||||
|
description: "Set node version"
|
||||||
|
default: 20
|
||||||
|
required: true
|
||||||
stanislav.melnichuk marked this conversation as resolved
|
|||||||
|
type: string
|
||||||
|
yarn-commands:
|
||||||
|
description: "yarn-commands"
|
||||||
|
default: |-
|
||||||
|
yarn install
|
||||||
|
yarn test
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
notification_enabled:
|
notification_enabled:
|
||||||
description: "Включение оповещений о разворачивании, требуется иметь url для оповещений в vault"
|
description: "Включение оповещений о разворачивании, требуется иметь url для оповещений в vault"
|
||||||
default: false
|
default: false
|
||||||
|
@ -40,12 +52,11 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: https://github.com/actions/checkout@v3
|
- 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
|
uses: https://github.com/actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: ${{ inputs.node-version }}
|
||||||
- run: yarn install
|
- run: ${{ inputs.yarn-commands }}
|
||||||
- run: yarn test
|
|
||||||
|
|
||||||
- name: dockerfile lint check
|
- name: dockerfile lint check
|
||||||
uses: https://github.com/hadolint/hadolint-action@v3.1.0
|
uses: https://github.com/hadolint/hadolint-action@v3.1.0
|
||||||
|
|
Loading…
Reference in New Issue
this can be false, because we already set default