Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,32 @@ jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
os: [ubuntu-latest]

env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_NOLOGO: 1

runs-on: ${{ matrix.os }}

steps:
- name: Checkout code
uses: actions/checkout@v1

- name: Setup .NET Core
- name: Setup .NET Core 2.1
uses: actions/setup-dotnet@v1
with:
dotnet-version: 2.2.108
dotnet-version: 2.1.x

- name: Install dependencies
run: dotnet msbuild /t:restore FirebaseAdmin

- name: Build with dotnet
run: |
dotnet build FirebaseAdmin/FirebaseAdmin
dotnet build FirebaseAdmin/FirebaseAdmin.Snippets
dotnet build FirebaseAdmin/FirebaseAdmin.IntegrationTests
dotnet msbuild FirebaseAdmin/FirebaseAdmin
dotnet msbuild FirebaseAdmin/FirebaseAdmin.Snippets
dotnet msbuild FirebaseAdmin/FirebaseAdmin.IntegrationTests

- name: Run unit tests
run: dotnet test FirebaseAdmin/FirebaseAdmin.Tests
6 changes: 5 additions & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_NOLOGO: 1

steps:
- name: Checkout source for staging
Expand All @@ -42,8 +43,11 @@ jobs:
with:
dotnet-version: 2.1.x

- name: Install dependencies
run: dotnet msbuild /t:restore FirebaseAdmin

- name: Build with dotnet
run: dotnet build FirebaseAdmin/FirebaseAdmin
run: dotnet msbuild FirebaseAdmin/FirebaseAdmin

- name: Run unit tests
run: dotnet test FirebaseAdmin/FirebaseAdmin.Tests
Expand Down
15 changes: 12 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,12 @@ jobs:
contains(github.event.pull_request.labels.*.name, 'release:publish'))

# Build and package artifacts on Windows.
runs-on: windows-latest
runs-on: ubuntu-latest

env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_NOLOGO: 1

# When manually triggering the build, the requester can specify a target branch or a tag
# via the 'ref' client parameter.
Expand All @@ -49,14 +50,22 @@ jobs:
with:
ref: ${{ github.event.client_payload.ref || github.ref }}

- name: Setup .NET Core 2.1
uses: actions/setup-dotnet@v1
with:
dotnet-version: 2.1.x

- name: Install dependencies
run: dotnet msbuild /t:restore FirebaseAdmin

- name: Build with dotnet
run: dotnet build FirebaseAdmin/FirebaseAdmin
run: dotnet msbuild FirebaseAdmin/FirebaseAdmin

- name: Run unit tests
run: dotnet test FirebaseAdmin/FirebaseAdmin.Tests

- name: Run integration tests
run: ./.github/scripts/run_integration_tests
run: ./.github/scripts/run_integration_tests.sh
env:
FIREBASE_SERVICE_ACCT_KEY: ${{ secrets.FIREBASE_SERVICE_ACCT_KEY }}
FIREBASE_API_KEY: ${{ secrets.FIREBASE_API_KEY }}
Expand Down
2 changes: 1 addition & 1 deletion FirebaseAdmin/FirebaseAdmin/FirebaseAdmin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<PropertyGroup>
<Version>2.2.0</Version>
<TargetFrameworks>netstandard2.0;net461</TargetFrameworks>
<TargetFrameworks Condition=" '$(OS)' != 'Windows_NT' ">netstandard2.0</TargetFrameworks>
<LangVersion>latest</LangVersion>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<AssemblyOriginatorKeyFile>../../FirebaseAdmin.snk</AssemblyOriginatorKeyFile>
Expand All @@ -25,6 +24,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0" PrivateAssets="All" />
<PackageReference Include="Google.Api.Gax.Rest" Version="3.2.0" />
<PackageReference Include="Google.Apis.Auth" Version="1.49.0" />
<PackageReference Include="System.Collections.Immutable" Version="1.7.1" />
Expand Down