Skip to content

Commit

Permalink
✨ Update to the latest CLI (0.8.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiulpin committed Feb 20, 2022
1 parent 2cc5f0d commit 167ef32
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 12 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/actions.yml
Expand Up @@ -9,15 +9,14 @@ on: # rebuild any PRs and main branch changes
jobs:
check-dist:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set Node.js 12.x
uses: actions/setup-node@v2.5.1
with:
node-version: 12.x
- name: Install dependencies
run: cd action && npm ci
run: cd scan && npm ci && cd ../common && npm ci
- name: Rebuild the dist/ directory
run: cd scan && npm run build && npm run package
- name: Compare the expected and actual dist/ directories
Expand Down Expand Up @@ -53,7 +52,7 @@ jobs:
- uses: actions/checkout@v2
- uses: ./
with:
linter: jetbrains/qodana-js
args: --linter,jetbrains/qodana-js

# Not possible at the moment for GitHub-hosted Windows agents: https://github.com/JetBrains/qodana-action/pull/31#issue-812728409
# test-windows:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/vsts.yml
Expand Up @@ -29,7 +29,7 @@ jobs:
with:
node-version: 12.x
- name: Install dependencies
run: cd action && npm ci
run: cd vsts && npm ci
- name: Rebuild the QodanaScan/ directory
run: cd vsts && npm run build && npm run package
- name: Compare the expected and actual QodanaScan/ directories
Expand Down
5 changes: 3 additions & 2 deletions action.yaml
Expand Up @@ -41,11 +41,10 @@ inputs:
description: 'GitHub token to be used for uploading annotations'
required: false
default: ${{ github.token }}
# deprecated options
linter:
description: '[DEPRECATED] Qodana linter – [official Qodana Docker image](#supported-qodana-docker-images).'
required: false
deprecationMessage: 'Use `args` (e.g. `args: -linter,<linter>`) instead'
deprecationMessage: 'Use `args` (e.g. `args: --linter,<linter>`) instead'
project-dir:
description: '[DEPRECATED] Root directory of the project to be analyzed'
required: false
Expand Down Expand Up @@ -81,10 +80,12 @@ inputs:
baseline-include-absent:
description: '[DEPRECATED] Include the results from the baseline absent in the current Qodana run in the output report'
required: false
default: "false"
deprecationMessage: 'Use `args` to pass the baseline include absent flag (e.g. `args: --baseline-include-absent`) instead'
changes:
description: '[DEPRECATED] Inspect uncommitted changes and report new problems'
required: false
default: "false"
deprecationMessage: 'Use `args` to pass the changes flag (e.g. `args: --changes`) instead'
script:
description: '[DEPRECATED] Override the default docker scenario'
Expand Down
4 changes: 1 addition & 3 deletions common/package.json
Expand Up @@ -15,9 +15,7 @@
"build": "tsc",
"format": "prettier --write '**/*.ts'",
"format-check": "prettier --check '**/*.ts'",
"lint": "eslint *.ts",
"package": "npm run build && cd .. && tfx extension create --manifests vss-extension.json",
"all": "npm install && npm run build && npm run format && npm run lint && npm run package"
"lint": "eslint *.ts"
},
"keywords": [],
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion common/qodana.ts
@@ -1,6 +1,6 @@
// noinspection JSUnusedGlobalSymbols

export const VERSION = '0.7.5'
export const VERSION = '0.8.0'
export const EXECUTABLE = 'qodana'
export const FAIL_THRESHOLD_OUTPUT =
'The number of problems exceeds the failThreshold'
Expand Down
2 changes: 1 addition & 1 deletion scan/dist/index.js
Expand Up @@ -1834,7 +1834,7 @@ function getQodanaScanArgs(args, resultsDir, cacheDir, env = `cli`) {
var VERSION, EXECUTABLE, FAIL_THRESHOLD_OUTPUT, QODANA_SARIF_NAME, QodanaExitCode;
var init_qodana = __esm({
"../common/qodana.ts"() {
VERSION = "0.7.5";
VERSION = "0.8.0";
EXECUTABLE = "qodana";
FAIL_THRESHOLD_OUTPUT = "The number of problems exceeds the failThreshold";
QODANA_SARIF_NAME = "qodana.sarif.json";
Expand Down
2 changes: 1 addition & 1 deletion vsts/QodanaScan/index.js
Expand Up @@ -101,7 +101,7 @@ function getQodanaScanArgs(args, resultsDir, cacheDir, env = `cli`) {
var VERSION, EXECUTABLE, FAIL_THRESHOLD_OUTPUT, QODANA_SARIF_NAME, QodanaExitCode;
var init_qodana = __esm({
"../common/qodana.ts"() {
VERSION = "0.7.5";
VERSION = "0.8.0";
EXECUTABLE = "qodana";
FAIL_THRESHOLD_OUTPUT = "The number of problems exceeds the failThreshold";
QODANA_SARIF_NAME = "qodana.sarif.json";
Expand Down

0 comments on commit 167ef32

Please sign in to comment.