Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🧱 Set up more tests #379

Merged
merged 1 commit into from
Sep 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
236 changes: 205 additions & 31 deletions .github/workflows/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,24 +83,11 @@ jobs:
name: dist
path: vsts/QodanaScan/
- name: Lint the code
run: npm run lint

build-test:
runs-on: '${{ matrix.os }}'
strategy:
matrix:
os:
- macos-latest
- ubuntu-latest
- windows-latest
needs: [ lint ]
steps:
- uses: actions/checkout@v4
- run: npm ci && npm run build && npm run test
run: npm run lint && npm run test

test-action:
runs-on: ${{ matrix.os }}
needs: [lint, build-test]
needs: [lint]
strategy:
matrix:
os: [ubuntu-latest]
Expand All @@ -111,21 +98,13 @@ jobs:
pr: [ 'true', 'false' ]
include:
- directory: 'tests/dotnet'
arguments: '--ide,QDNET'
os: 'windows-latest'
os: 'ubuntu-latest'
arguments: '-l,jetbrains/qodana-cdnet:2024.2-eap'
pr: 'false' # TODO: add true when pr-mode is available for dotnet-community
- directory: 'tests/cpp'
arguments: '-l,jetbrains/qodana-clang:2024.2-eap'
os: 'ubuntu-latest'
pr: 'false'
- directory: 'tests/dotnet'
arguments: '--ide,QDNET'
os: 'windows-latest'
pr: 'true'
# - directory: 'tests/dotnet'
# os: 'ubuntu-latest'
# arguments: '-l,jetbrains/qodana-cdnet:2024.2-eap'
# pr: 'false' # TODO: add true when pr-mode is available for dotnet-community
# - directory: 'tests/cpp'
# arguments: '-l,jetbrains/qodana-clang:2024.2-eap'
# os: 'ubuntu-latest'
# pr: 'false'
- directory: 'tests/java'
arguments: '-l,jetbrains/qodana-jvm-community:2024.2'
os: 'ubuntu-latest'
Expand All @@ -150,6 +129,198 @@ jobs:
arguments: '-l,jetbrains/qodana-python-community:2024.2'
os: 'ubuntu-latest'
pr: 'false'
- directory: 'tests/dotnet'
arguments: '--ide,QDNET'
os: 'windows-latest'
pr: 'false'
- directory: 'tests/dotnet'
arguments: '--ide,QDNET'
os: 'windows-latest'
pr: 'true'
- directory: 'tests/dotnet'
arguments: '--ide,QDNET'
os: 'ubuntu-latest'
pr: 'false'
- directory: 'tests/dotnet'
arguments: '--ide,QDNET'
os: 'ubuntu-latest'
pr: 'true'
- directory: 'tests/dotnet'
arguments: '--ide,QDNET'
os: 'macos-latest'
pr: 'false'
- directory: 'tests/dotnet'
arguments: '--ide,QDNET'
os: 'macos-latest'
pr: 'true'
- directory: 'tests/duplicates'
arguments: '--ide,QDPHP'
os: 'windows-latest'
pr: 'false'
- directory: 'tests/duplicates'
arguments: '--ide,QDPHP'
os: 'windows-latest'
pr: 'true'
- directory: 'tests/duplicates'
arguments: '--ide,QDPHP'
os: 'ubuntu-latest'
pr: 'false'
- directory: 'tests/duplicates'
arguments: '--ide,QDPHP'
os: 'ubuntu-latest'
pr: 'true'
- directory: 'tests/duplicates'
arguments: '--ide,QDPHP'
os: 'macos-latest'
pr: 'false'
- directory: 'tests/duplicates'
arguments: '--ide,QDPHP'
os: 'macos-latest'
pr: 'true'
- directory: 'tests/go'
arguments: '--ide,QDGO'
os: 'windows-latest'
pr: 'false'
- directory: 'tests/go'
arguments: '--ide,QDGO'
os: 'windows-latest'
pr: 'true'
- directory: 'tests/go'
arguments: '--ide,QDGO'
os: 'ubuntu-latest'
pr: 'false'
- directory: 'tests/go'
arguments: '--ide,QDGO'
os: 'ubuntu-latest'
pr: 'true'
- directory: 'tests/go'
arguments: '--ide,QDGO'
os: 'macos-latest'
pr: 'false'
- directory: 'tests/go'
arguments: '--ide,QDGO'
os: 'macos-latest'
pr: 'true'
- directory: 'tests/js'
arguments: '--ide,QDJS'
os: 'windows-latest'
pr: 'false'
- directory: 'tests/js'
arguments: '--ide,QDJS'
os: 'windows-latest'
pr: 'true'
- directory: 'tests/js'
arguments: '--ide,QDJS'
os: 'ubuntu-latest'
pr: 'false'
- directory: 'tests/js'
arguments: '--ide,QDJS'
os: 'ubuntu-latest'
pr: 'true'
- directory: 'tests/js'
arguments: '--ide,QDJS'
os: 'macos-latest'
pr: 'false'
- directory: 'tests/js'
arguments: '--ide,QDJS'
os: 'macos-latest'
pr: 'true'
- directory: 'tests/py_error'
arguments: '--ide,QDPY'
os: 'windows-latest'
pr: 'false'
- directory: 'tests/py_error'
arguments: '--ide,QDPY'
os: 'windows-latest'
pr: 'true'
- directory: 'tests/py_error'
arguments: '--ide,QDPY'
os: 'ubuntu-latest'
pr: 'false'
- directory: 'tests/py_error'
arguments: '--ide,QDPY'
os: 'ubuntu-latest'
pr: 'true'
- directory: 'tests/py_error'
arguments: '--ide,QDPY'
os: 'macos-latest'
pr: 'false'
- directory: 'tests/py_error'
arguments: '--ide,QDPY'
os: 'macos-latest'
pr: 'true'
- directory: 'tests/py_error'
arguments: '--ide,QDPYC'
os: 'windows-latest'
pr: 'false'
- directory: 'tests/py_error'
arguments: '--ide,QDPYC'
os: 'windows-latest'
pr: 'true'
- directory: 'tests/py_error'
arguments: '--ide,QDPYC'
os: 'ubuntu-latest'
pr: 'false'
- directory: 'tests/py_error'
arguments: '--ide,QDPYC'
os: 'ubuntu-latest'
pr: 'true'
- directory: 'tests/py_error'
arguments: '--ide,QDPYC'
os: 'macos-latest'
pr: 'false'
- directory: 'tests/py_error'
arguments: '--ide,QDPYC'
os: 'macos-latest'
pr: 'true'
- directory: 'tests/java'
arguments: '--ide,QDJVM'
os: 'windows-latest'
pr: 'false'
- directory: 'tests/java'
arguments: '--ide,QDJVM'
os: 'windows-latest'
pr: 'true'
- directory: 'tests/java'
arguments: '--ide,QDJVM'
os: 'ubuntu-latest'
pr: 'false'
- directory: 'tests/java'
arguments: '--ide,QDJVM'
os: 'ubuntu-latest'
pr: 'true'
- directory: 'tests/java'
arguments: '--ide,QDJVM'
os: 'macos-latest'
pr: 'false'
- directory: 'tests/java'
arguments: '--ide,QDJVM'
os: 'macos-latest'
pr: 'true'
- directory: 'tests/java'
arguments: '--ide,QDJVMC'
os: 'windows-latest'
pr: 'false'
- directory: 'tests/java'
arguments: '--ide,QDJVMC'
os: 'windows-latest'
pr: 'true'
- directory: 'tests/java'
arguments: '--ide,QDJVMC'
os: 'ubuntu-latest'
pr: 'false'
- directory: 'tests/java'
arguments: '--ide,QDJVMC'
os: 'ubuntu-latest'
pr: 'true'
- directory: 'tests/java'
arguments: '--ide,QDJVMC'
os: 'macos-latest'
pr: 'false'
- directory: 'tests/java'
arguments: '--ide,QDJVMC'
os: 'macos-latest'
pr: 'true'
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -159,6 +330,10 @@ jobs:
repository: 'JetBrains/code-analytics-examples'
fetch-depth: 0
path: 'tests'
- name: Remove unwanted files
run:
rm build.gradle.kts settings.gradle.kts
shell: bash
- name: Emulate pull request
run: |
git config --global user.name qodana-bot
Expand Down Expand Up @@ -191,7 +366,6 @@ jobs:
post-pr-comment: false
use-annotations: false
use-caches: false
use-nightly: false
env:
QODANA_TOKEN: ${{ secrets.QODANA_PROJECT_TESTS_TOKEN }}
QODANA_PR_SHA: ${{ env.QODANA_PR_SHA }}
Expand All @@ -201,7 +375,7 @@ jobs:

azure-dev-release:
runs-on: ubuntu-latest
needs: [ lint, build-test ]
needs: [ lint ]
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
Expand Down
Loading