Create CodeQL pipeline AB#425 (#2)
* test basic cql pipeline * test single sln * test autobuild with languages declaration * test language matrix * test language matrix * replace java autobuild * test java compile * remove java to test others * test java build through mvnw * test java build through mvnw 2 * fix step names and pl triggers
This commit is contained in:
Родитель
0acfe44d67
Коммит
96d19ffedf
|
@ -0,0 +1,50 @@
|
|||
name: CodeQL Analysis
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- 'Source/**'
|
||||
pull_request:
|
||||
paths:
|
||||
- 'Source/**'
|
||||
schedule:
|
||||
- cron: '0 8 * * *'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
analyze:
|
||||
name: Analyze
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
language: [ 'csharp', 'java', 'javascript', 'python' ]
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
id: checkout_repo
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Initialize CodeQL
|
||||
id: init_codeql
|
||||
uses: github/codeql-action/init@v1
|
||||
with:
|
||||
languages: ${{ matrix.language }}
|
||||
category: ${{ matrix.language }}
|
||||
queries: security-and-quality
|
||||
|
||||
- if: matrix.language == 'csharp'
|
||||
name: Build C# code
|
||||
id: build_csharp_code
|
||||
uses: github/codeql-action/autobuild@v1
|
||||
|
||||
- if: matrix.language == 'java'
|
||||
name: Build Java code
|
||||
id: build_java_code
|
||||
run: |
|
||||
./mvnw package
|
||||
working-directory: Source/Services/RPSLS.JavaPlayer.Api/
|
||||
|
||||
- name: Perform CodeQL Analysis
|
||||
id: analyze_codeql
|
||||
uses: github/codeql-action/analyze@v1
|
||||
|
||||
# Built with ❤ by [Pipeline Foundation](https://pipeline.foundation)
|
Загрузка…
Ссылка в новой задаче