forked from quartznet/quartznet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce .NET 4.7.2 target and remove System.Diagnostics.DiagnosticS… (
quartznet#1087) * Introduce .NET 4.7.2 target and remove System.Diagnostics.DiagnosticSource from .NET 4.6.1 build * Add GitHub Actions build & tweaks build systems to target main * make tests run on Linux too
- Loading branch information
Showing
38 changed files
with
333 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
paths-ignore: | ||
- docs/**/* | ||
- package.json | ||
- docs.yml | ||
|
||
pull_request: | ||
branches: [ main ] | ||
paths-ignore: | ||
- 'docs/**' | ||
- 'readme.md' | ||
|
||
jobs: | ||
build_test: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, windows-latest] | ||
env: | ||
DOTNET_NOLOGO: true | ||
DOTNET_CLI_TELEMETRY_OPTOUT: 1 | ||
|
||
name: Build & Test | ||
|
||
steps: | ||
|
||
- name: Checkout source code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup dotnet 2.1 | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 2.1.* | ||
|
||
- name: Setup dotnet 3.1 | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 3.1.* | ||
|
||
- name: Setup dotnet 5.0 | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 5.0.* | ||
|
||
- name: Build | ||
if: matrix.os == 'ubuntu-latest' | ||
run: | | ||
chmod u+x build.sh | ||
./build.sh | ||
- name: Build | ||
if: matrix.os == 'windows-latest' | ||
shell: cmd | ||
run: | | ||
./build.cmd | ||
- name: Unit Tests | ||
if: matrix.os == 'ubuntu-latest' | ||
run: | | ||
dotnet test -c Release --no-restore --no-build --framework net5.0 ./src/Quartz.Tests.Unit/Quartz.Tests.Unit.csproj | ||
- name: Unit Tests | ||
if: matrix.os == 'windows-latest' | ||
run: | | ||
dotnet test -c Release --no-restore --no-build ./src/Quartz.Tests.Unit/Quartz.Tests.Unit.csproj | ||
# - name: Integration Tests | ||
# run: | | ||
# dotnet test -c Release --no-restore --no-build ./src/Quartz.Tests.Integration/Quartz.Tests.Integration.csproj |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Publish | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*.*.*' | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
env: | ||
DOTNET_NOLOGO: true | ||
DOTNET_CLI_TELEMETRY_OPTOUT: 1 | ||
|
||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup dotnet 2.1 | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 2.1.* | ||
|
||
- name: Setup dotnet 3.1 | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 3.1.* | ||
|
||
- name: Setup dotnet 5.0 | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 5.0.* | ||
|
||
- name: Test | ||
run: dotnet test --configuration Release | ||
|
||
- name: Pack with dotnet | ||
run: | | ||
arrTag=(${GITHUB_REF//\// }) | ||
VERSION="${arrTag[2]}" | ||
VERSION="${VERSION//v}" | ||
echo "$VERSION" | ||
dotnet pack --output artifacts --configuration Release -p:Version=$VERSION | ||
- name: Push with dotnet | ||
run: dotnet nuget push artifacts/*.*nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/Quartz.Examples.AspNetCore/Quartz.Examples.AspNetCore.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/Quartz.OpenTelemetry.Instrumentation/Quartz.OpenTelemetry.Instrumentation.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.