-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1048 from manandre/ci-build
Regenerate ci github workflows from Nuke build
- Loading branch information
Showing
6 changed files
with
39 additions
and
120 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,23 +69,20 @@ on: | |
- '.github/renovate.json' | ||
|
||
jobs: | ||
Build: | ||
build: | ||
env: | ||
NUGET_PACKAGES: '${{ github.workspace }}/.nuget/packages' | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [macOS-latest, windows-latest, ubuntu-latest] | ||
os: [macos-latest, windows-latest, ubuntu-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
with: | ||
clean: 'false' | ||
fetch-depth: '0' | ||
- name: Fetch all history for all tags and branches | ||
run: | | ||
git fetch --prune | ||
- name: NuGet Cache | ||
uses: actions/cache@v3 | ||
with: | ||
|
@@ -105,18 +102,29 @@ jobs: | |
run: | | ||
dotnet tool restore | ||
- name: 🎁 Restore | ||
id: restore | ||
run: | | ||
dotnet nuke Restore --skip | ||
- name: ⚙ Build | ||
id: build | ||
run: | | ||
dotnet nuke Build --skip | ||
- name: 🚦 Test | ||
id: test | ||
run: | | ||
dotnet nuke Test TriggerCodeCoverageReports GenerateCodeCoverageReportCobertura GenerateCodeCoverageBadges GenerateCodeCoverageSummary GenerateCodeCoverageReport --skip | ||
- name: 📦 Pack | ||
id: pack | ||
run: | | ||
dotnet nuke Pack --skip | ||
- name: 🏺 Publish coverage data | ||
if: always() | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: 'coverage' | ||
path: 'coverage/' | ||
- name: 🐿 Publish Coverage | ||
if: (github.event_name != 'pull_request' && github.event_name != 'pull_request_target') || ((github.event_name == 'pull_request' || github.event_name == 'pull_request_target') && github.event.pull_request.user.login != 'renovate[bot]' && github.event.pull_request.user.login != 'dependabot[bot]') | ||
uses: codecov/[email protected] | ||
with: | ||
name: 'actions-${{ matrix.os }}' | ||
|
@@ -126,12 +134,6 @@ jobs: | |
with: | ||
name: 'logs' | ||
path: 'artifacts/logs/' | ||
- name: 🏺 Publish coverage data | ||
if: always() | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: 'coverage' | ||
path: 'coverage/' | ||
- name: 🏺 Publish test data | ||
if: always() | ||
uses: actions/upload-artifact@v3 | ||
|
@@ -144,16 +146,15 @@ jobs: | |
with: | ||
name: 'nuget' | ||
path: 'artifacts/nuget/' | ||
- name: 🏺 Publish Docs | ||
if: always() | ||
- name: 🏺 Publish Documentation | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: 'docs' | ||
path: 'artifacts/docs/' | ||
Publish: | ||
needs: | ||
- Build | ||
uses: RocketSurgeonsGuild/actions/.github/workflows/[email protected] | ||
secrets: | ||
RSG_NUGET_API_KEY: '${{ secrets.RSG_NUGET_API_KEY }}' | ||
RSG_AZURE_DEVOPS: '${{ secrets.RSG_AZURE_DEVOPS }}' | ||
uses: RocketSurgeonsGuild/actions/.github/workflows/[email protected] |
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