Skip to content

Commit 3022eb2

Browse files
authored
Small CI tweaks (graphql-dotnet#1974)
1 parent 848d4d6 commit 3022eb2

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

.github/workflows/publish-code.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77

88
env:
99
NODE_VERSION: '10.x' # Node 10 LTS
10+
DOTNET_NOLOGO: true
11+
DOTNET_CLI_TELEMETRY_OPTOUT: true
1012

1113
jobs:
1214
publish:
@@ -54,16 +56,13 @@ jobs:
5456
- name: Install dependencies
5557
working-directory: src
5658
run: dotnet restore
57-
env:
58-
DOTNET_NOLOGO: true
59-
DOTNET_CLI_TELEMETRY_OPTOUT: true
60-
- name: Build solution (release config)
59+
- name: Build solution [Release]
6160
working-directory: src
6261
run: dotnet build --no-restore -c Release -p:NoWarn=CS1591 -p:Version=$ref
63-
- name: Pack solution (release config)
62+
- name: Pack solution [Release]
6463
working-directory: src
6564
run: dotnet pack --no-restore -c Release -p:Version=$ref -o out
66-
- name: Upload nuget packages as workflow artifacts
65+
- name: Upload Nuget packages as workflow artifacts
6766
uses: actions/upload-artifact@v2
6867
with:
6968
name: Nuget packages
@@ -75,7 +74,7 @@ jobs:
7574
- name: Zip documentation
7675
working-directory: docs2/public
7776
run: zip -r ../../src/out/Documentation.zip .
78-
- name: Upload nuget packages and documentation as release artifacts
77+
- name: Upload Nuget packages and documentation as release artifacts
7978
uses: actions/github-script@v2
8079
with:
8180
github-token: ${{secrets.GITHUB_TOKEN}}

.github/workflows/test-code.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
- src/**
1010
- .github/workflows/**
1111

12+
env:
13+
DOTNET_NOLOGO: true
14+
DOTNET_CLI_TELEMETRY_OPTOUT: true
15+
1216
jobs:
1317
test:
1418
strategy:
@@ -26,17 +30,14 @@ jobs:
2630
- name: Install dependencies
2731
working-directory: src
2832
run: dotnet restore
29-
env:
30-
DOTNET_NOLOGO: true
31-
DOTNET_CLI_TELEMETRY_OPTOUT: true
32-
- name: Build solution (release config)
33+
- name: Build solution [Release]
3334
if: ${{ startsWith(matrix.os, 'ubuntu') }}
3435
working-directory: src
3536
run: dotnet build --no-restore -c Release -p:NoWarn=CS1591
36-
- name: Build solution (debug config)
37+
- name: Build solution [Debug]
3738
working-directory: src
3839
run: dotnet build --no-restore -c Debug -p:NoWarn=CS1591
39-
- name: Test solution (debug config)
40+
- name: Test solution [Debug]
4041
working-directory: src
4142
run: dotnet test --no-restore
4243

src/GraphQL.Harness/GraphQL.Harness.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFramework>netcoreapp3.1</TargetFramework>
5+
<NoWarn>$(NoWarn);1591</NoWarn>
56
</PropertyGroup>
67

78
<ItemGroup>

src/GraphQL.sln

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".Solution Items", ".Solutio
77
ProjectSection(SolutionItems) = preProject
88
..\.editorconfig = ..\.editorconfig
99
..\.gitignore = ..\.gitignore
10-
..\appveyor.yml = ..\appveyor.yml
1110
Directory.Build.props = Directory.Build.props
1211
..\README.md = ..\README.md
1312
Tests.props = Tests.props

0 commit comments

Comments
 (0)