Skip to content

Commit

Permalink
Running github ql next to the lint
Browse files Browse the repository at this point in the history
  • Loading branch information
DavyLandman committed Jun 17, 2024
1 parent 0b2f80a commit a60b30d
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,52 @@ jobs:
eslint_dir: ./rascal-vscode-extension
eslint_args: "src"
eslint_extensions: ts


githubql:
strategy:
matrix:
include:
- language: java-kotlin
build-mode: manual
- language: javascript-typescript
build-mode: autobuild
name: githubql
runs-on: ubuntu-latest
timeout-minutes: 360
permissions:
# required for all workflows
security-events: write

# required to fetch internal or private CodeQL packs
packages: read

# only required for workflows in private repositories
actions: read
contents: read

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}

- if: ${{ matrix.language == 'javascript-typescript' }}
name: build node
uses: github/codeql-action/autobuild@v3
with:
working-directory: rascal-vscode-extension/

- if: ${{ matrix.language == 'java-kotlin' }}
name: Build java
run: mvn run compile -Drascal.compile.skip -Drascal.tutor.skip
working-directory: rascal-lsp/

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"

0 comments on commit a60b30d

Please sign in to comment.