-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔥 Merge Qodana Azure Pipelines extension
- Loading branch information
Showing
45 changed files
with
30,873 additions
and
28,719 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: 'actions-build-test' | ||
on: # rebuild any PRs and main branch changes | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
- 'releases/*' | ||
|
||
jobs: | ||
check-dist: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set Node.js 12.x | ||
uses: actions/[email protected] | ||
with: | ||
node-version: 12.x | ||
- name: Install dependencies | ||
run: cd action && npm ci | ||
- name: Rebuild the dist/ directory | ||
run: cd scan && npm run build | ||
- name: Compare the expected and actual dist/ directories | ||
run: | | ||
if [ "$(git diff --ignore-space-at-eol scan/dist/ | wc -l)" -gt "0" ]; then | ||
echo "Detected uncommitted changes after build. See status below:" | ||
git diff | ||
exit 1 | ||
fi | ||
id: diff | ||
# If index.js was different from expected, upload the expected version as an artifact | ||
- uses: actions/upload-artifact@v2 | ||
if: ${{ failure() && steps.diff.conclusion == 'failure' }} | ||
with: | ||
name: dist | ||
path: scan/dist/ | ||
|
||
build: # make sure build/ci work properly | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ macos-latest, ubuntu-latest, windows-latest ] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: | | ||
cd scan | ||
npm install | ||
npm test | ||
test-ubuntu: # make sure the action works on a clean machine without building | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ./ | ||
with: | ||
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: | ||
# runs-on: windows-latest | ||
# steps: | ||
# - uses: actions/checkout@v2 | ||
# - uses: ./ | ||
# with: | ||
# linter: jetbrains/qodana-js |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ jobs: | |
curl -L -o grazie-pro.zip "$GRAZIE_PLUGIN" && unzip grazie-pro.zip | ||
mv grazie-pro ${{ runner.temp }}/grazie-pro && rm -f grazie-pro.zip | ||
- name: 'Qodana Scan' | ||
uses: JetBrains/[email protected].2 | ||
uses: JetBrains/[email protected].5 | ||
with: | ||
linter: jetbrains/qodana-js | ||
additional-volumes: | | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: 'vsts-build-test' | ||
on: # rebuild any PRs and main branch changes | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
- 'releases/*' | ||
|
||
jobs: | ||
build: # make sure build/ci work properly | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ macos-latest, ubuntu-latest, windows-latest ] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: | | ||
cd vsts | ||
npm install | ||
npm run build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
job("publish ci-common") { | ||
container(displayName = "Run publish script", image = "node:16-alpine") { | ||
env["REGISTRY"] = "https://packages.jetbrains.team/npm/p/sa/npm-public/" | ||
shellScript { | ||
content = """ | ||
cd common | ||
npm ci | ||
npm run build --if-present | ||
npm run test | ||
echo "registry = ${'$'}REGISTRY" >> ~/.npmrc | ||
AUTH=${'$'}(echo -ne "${'$'}JB_SPACE_CLIENT_ID:${'$'}JB_SPACE_CLIENT_SECRET" | base64 | tr -d \\n) | ||
echo "_auth = ${'$'}AUTH" >> ~/.npmrc | ||
echo "email = [email protected]" >> ~/.npmrc | ||
echo "always-auth = true" >> ~/.npmrc | ||
npm run publish | ||
""" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"name": "@qodana/ci-common", | ||
"version": "0.7.4X", | ||
"description": "Qodana CI shared code for various JS extensions", | ||
"main": "lib/qodana.js", | ||
"license": "Apache-2.0", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/JetBrains/qodana-cli.git" | ||
}, | ||
"files": [ | ||
"qodana.ts", | ||
"lib" | ||
], | ||
"scripts": { | ||
"build": "rm -rf lib/ && tsc", | ||
"publish": "npm run build && npm publish --registry https://packages.jetbrains.team/npm/p/sa/npm-public/" | ||
}, | ||
"homepage": "https://github.com/JetBrains/qodana-action", | ||
"author": "JetBrains", | ||
"contributors": [ | ||
{ | ||
"name": "Viktor Tiulpin", | ||
"url": "https://github.com/tiulpin" | ||
} | ||
], | ||
"dependencies": { | ||
"@types/node": "^17.0.17" | ||
} | ||
} |
Oops, something went wrong.