forked from microsoft/RockPaperScissorsLizardSpock
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (43 loc) · 1.17 KB
/
Copy pathcodeql-analysis.yml
File metadata and controls
50 lines (43 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: CodeQL Analysis
on:
push:
paths:
- 'Source/**'
pull_request:
paths:
- 'Source/**'
schedule:
- cron: '* * * * 4'
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@v2
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@v2
- 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@v2
# Built with ❤ by [Pipeline Foundation](https://pipeline.foundation)