-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (38 loc) · 1023 Bytes
/
run-tests.yml
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
name: Run Tests
on:
push:
branches:
- master
- develop
pull_request:
workflow_dispatch:
jobs:
RunTests:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3.0.0
with:
fetch-depth: 0
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v2.0.0
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v1.1
- name: Set up JDK
uses: actions/setup-java@v3.0.0
with:
java-version: 17
distribution: microsoft
- name: Test
shell: pwsh
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
SONAR_TOKEN: ${{secrets.SONAR_TOKEN}}
run: |
./build.ps1 RunSonar `
--is-ci `
--configuration Release `
--sonar-host-url "https://sonarcloud.io" `
--sonar-project-key "KuraiAndras_Injecter" `
--sonar-token "${{ secrets.SONAR_TOKEN }}" `
--sonar-organization "kuraiandras"