-
Notifications
You must be signed in to change notification settings - Fork 18
50 lines (46 loc) · 1.4 KB
/
build-plugin.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
46
47
48
49
50
name: Build Plugin
on:
push:
branches: [ master, fix-pipelines ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: windows-latest
environment: buildPlugin
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: 17
- name: Install .NET dependencies
run: dotnet restore
- name: Build plugin
env:
SPECFLOW_TELEMETRY_ENABLED: 0
APPINSIGHTSINSTRUMENTATIONKEY: ${{ secrets.APPINSIGHTSINSTRUMENTATIONKEY }}
run: gradle :buildPlugin --stacktrace -PintellijPublishToken=none
- name: dotnet-tests-report
uses: zyborg/[email protected]
env:
SPECFLOW_TELEMETRY_ENABLED: 0
with:
report_name: plugin_tests
report_title: Plugin Tests
set_check_status_from_test_outcome: true
project_path: src/dotnet/ReSharperPlugin.SpecflowRiderPlugin.Tests/ReSharperPlugin.SpecflowRiderPlugin.Tests.csproj
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Unpack Distribution
shell: pwsh
run: scripts/Unpack-Distribution.ps1
- name: Upload artifact
uses: actions/[email protected]
with:
name: SpecFlowPlugin
path: build/distributions/unpacked