Fix review points
This commit is contained in:
parent
56969017e6
commit
10ebc94cac
24
.github/workflows/basic-validation.yml
vendored
24
.github/workflows/basic-validation.yml
vendored
@ -14,21 +14,6 @@ on:
|
|||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
default: "['ubuntu-latest', 'windows-latest', 'macos-latest']"
|
default: "['ubuntu-latest', 'windows-latest', 'macos-latest']"
|
||||||
build-command:
|
|
||||||
description: "Optional input to configure build command in case the default one doesn't suit. Set to an empty string if build isn't needed. Multiline syntax is supported"
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
default: "npm run build"
|
|
||||||
prettier-command:
|
|
||||||
description: "Optional input to set prettier command. Set to an empty string if prettiering isn't needed"
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
default: "npm run format-check"
|
|
||||||
linter-command:
|
|
||||||
description: "Optional input to set linter command. Set to an empty string if linting isn't needed"
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
default: "npm run lint"
|
|
||||||
enable-audit:
|
enable-audit:
|
||||||
description: "Optional input to enable npm package audit process"
|
description: "Optional input to enable npm package audit process"
|
||||||
required: false
|
required: false
|
||||||
@ -66,16 +51,13 @@ jobs:
|
|||||||
run: npm ci --ignore-scripts
|
run: npm ci --ignore-scripts
|
||||||
|
|
||||||
- name: Run prettier
|
- name: Run prettier
|
||||||
if: ${{inputs.prettier-command}}
|
run: npm run format-check
|
||||||
run: ${{inputs.prettier-command}}
|
|
||||||
|
|
||||||
- name: Run linter
|
- name: Run linter
|
||||||
if: ${{inputs.linter-command}}
|
run: npm run lint
|
||||||
run: ${{inputs.linter-command}}
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
if: ${{inputs.build-command}}
|
run: npm run build
|
||||||
run: ${{inputs.build-command}}
|
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: npm test
|
run: npm test
|
||||||
|
|||||||
7
.github/workflows/check-dist.yml
vendored
7
.github/workflows/check-dist.yml
vendored
@ -12,11 +12,6 @@ on:
|
|||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
default: "./dist"
|
default: "./dist"
|
||||||
build-command:
|
|
||||||
description: "Optional input to configure build command in case the default one doesn't suit. If it's not set, defaults to 'npm run build'"
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
default: "npm run build"
|
|
||||||
node-version:
|
node-version:
|
||||||
description: "Optional input to set version of Node.js used to build a project. The input syntax corresponds to the setup-node's one"
|
description: "Optional input to set version of Node.js used to build a project. The input syntax corresponds to the setup-node's one"
|
||||||
required: false
|
required: false
|
||||||
@ -47,7 +42,7 @@ jobs:
|
|||||||
run: npm ci --ignore-scripts
|
run: npm ci --ignore-scripts
|
||||||
|
|
||||||
- name: Rebuild the dist directory
|
- name: Rebuild the dist directory
|
||||||
run: ${{inputs.build-command}}
|
run: npm run build
|
||||||
|
|
||||||
- name: Compare the expected and actual dist directories
|
- name: Compare the expected and actual dist directories
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
19
.github/workflows/codeql-analysis.yml
vendored
19
.github/workflows/codeql-analysis.yml
vendored
@ -7,11 +7,10 @@ name: CodeQL
|
|||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
languages:
|
codeql-cfg-path:
|
||||||
description: "Optional input to set languages for CodeQL check. Supported values are: 'cpp', 'csharp', 'go', 'java', 'javascript', 'typescript', 'python', 'ruby'. To use multiple languages use the same syntax as used in the default value."
|
description: "Optional input to set path to the CodeQL config file"
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
default: "['javascript']"
|
|
||||||
build-command:
|
build-command:
|
||||||
description: "Optional input to specify manual build command. Multiline syntax is supported"
|
description: "Optional input to specify manual build command. Multiline syntax is supported"
|
||||||
required: false
|
required: false
|
||||||
@ -26,20 +25,22 @@ jobs:
|
|||||||
contents: read
|
contents: read
|
||||||
security-events: write
|
security-events: write
|
||||||
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
language: ${{fromJson(inputs.languages)}}
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
# Initializes the CodeQL tools for scanning.
|
# Initializes the CodeQL tools for scanning.
|
||||||
- name: Initialize CodeQL
|
- name: Initialize CodeQL
|
||||||
|
if: ${{!inputs.codeql-cfg-path}}
|
||||||
|
uses: github/codeql-action/init@v2
|
||||||
|
|
||||||
|
- name: Initialize CodeQL with config file
|
||||||
|
if: ${{inputs.codeql-cfg-path}}
|
||||||
uses: github/codeql-action/init@v2
|
uses: github/codeql-action/init@v2
|
||||||
with:
|
with:
|
||||||
languages: ${{ matrix.language }}
|
config-file: ${{inputs.codeql-cfg-path}}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
|
||||||
# If this step fails, configure a build command manually using build-command input. This command will be executed in the corresponding step.
|
# If this step fails, configure a build command manually using build-command input. This command will be executed in the corresponding step.
|
||||||
|
|||||||
8
.github/workflows/licensed.yml
vendored
8
.github/workflows/licensed.yml
vendored
@ -5,12 +5,6 @@ name: Licensed
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
|
||||||
licensed-url:
|
|
||||||
description: "Optional input to set the url of the required version of the Licenced tool"
|
|
||||||
required: false
|
|
||||||
type: string
|
|
||||||
default: "https://github.com/github/licensed/releases/download/3.9.0/licensed-3.9.0-linux-x64.tar.gz"
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
validate-cached-dependency-records:
|
validate-cached-dependency-records:
|
||||||
@ -27,7 +21,7 @@ jobs:
|
|||||||
- name: Install licensed tool
|
- name: Install licensed tool
|
||||||
run: |
|
run: |
|
||||||
cd $RUNNER_TEMP
|
cd $RUNNER_TEMP
|
||||||
curl -Lfs -o licensed.tar.gz ${{inputs.licensed-url}}
|
curl -Lfs -o licensed.tar.gz https://github.com/github/licensed/releases/download/3.9.0/licensed-3.9.0-linux-x64.tar.gz
|
||||||
sudo tar -xzf licensed.tar.gz
|
sudo tar -xzf licensed.tar.gz
|
||||||
sudo mv licensed /usr/local/bin/licensed
|
sudo mv licensed /usr/local/bin/licensed
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user