diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index f74b7112..9c7f7e00 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -9,7 +9,6 @@ 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 @@ -17,7 +16,7 @@ jobs: 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 @@ -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: diff --git a/.github/workflows/vsts.yml b/.github/workflows/vsts.yml index dfe3e517..0d6cca80 100644 --- a/.github/workflows/vsts.yml +++ b/.github/workflows/vsts.yml @@ -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 diff --git a/action.yaml b/action.yaml index 74133bfa..eff90564 100644 --- a/action.yaml +++ b/action.yaml @@ -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,`) instead' + deprecationMessage: 'Use `args` (e.g. `args: --linter,`) instead' project-dir: description: '[DEPRECATED] Root directory of the project to be analyzed' required: false @@ -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' diff --git a/common/package.json b/common/package.json index 6660dda4..14098301 100644 --- a/common/package.json +++ b/common/package.json @@ -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": { diff --git a/common/qodana.ts b/common/qodana.ts index 8a16e883..0da8c416 100644 --- a/common/qodana.ts +++ b/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' diff --git a/scan/dist/index.js b/scan/dist/index.js index 2c1f6498..ab54fabb 100644 --- a/scan/dist/index.js +++ b/scan/dist/index.js @@ -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"; diff --git a/vsts/QodanaScan/index.js b/vsts/QodanaScan/index.js index 4a6ed525..506cdf55 100644 --- a/vsts/QodanaScan/index.js +++ b/vsts/QodanaScan/index.js @@ -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";