Skip to content

Commit

Permalink
🧱 Set up more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tiulpin committed Sep 20, 2024
1 parent 84494be commit 089239f
Showing 1 changed file with 205 additions and 31 deletions.
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

0 comments on commit 089239f

Please sign in to comment.