-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: fix workflow (add checkout code step)
- Loading branch information
1 parent
476f9c2
commit f819724
Showing
2 changed files
with
42 additions
and
37 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 |
---|---|---|
@@ -1,22 +1,24 @@ | ||
name: Build Pull Requests | ||
|
||
on: | ||
pull_request: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
env: | ||
HUSKY: 0 | ||
steps: | ||
- name: Setup .NET 8 | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 8.0.100 | ||
- name: Restore dependencies | ||
run: dotnet restore | ||
- name: Build | ||
run: dotnet build -c Release --no-restore | ||
- name: Test | ||
run: dotnet test -c Release --no-build --verbosity normal | ||
build: | ||
runs-on: ubuntu-latest | ||
env: | ||
HUSKY: 0 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Setup .NET 8 | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 8.0.100 | ||
- name: Restore dependencies | ||
run: dotnet restore | ||
- name: Build | ||
run: dotnet build -c Release --no-restore | ||
- name: Test | ||
run: dotnet test -c Release --no-build --verbosity normal |
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 |
---|---|---|
|
@@ -12,23 +12,26 @@ jobs: | |
env: | ||
HUSKY: 0 | ||
steps: | ||
- name: Setup .NET 8 | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 8.0.x | ||
- name: Print information | ||
run: | | ||
ls -la | ||
dotnet --info | ||
- name: Restore dependencies | ||
run: dotnet restore | ||
- name: Build | ||
run: dotnet build --configuration Release --no-restore | ||
- name: Test | ||
run: dotnet test --configuration Release --no-build --verbosity normal | ||
- name: Publish Husky | ||
uses: alirezanet/[email protected] | ||
with: | ||
PROJECT_FILE_PATH: src/Husky/Husky.csproj | ||
INCLUDE_SYMBOLS: true | ||
NUGET_KEY: ${{secrets.NUGET_API_KEY}} | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup .NET 8 | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 8.0.x | ||
- name: Print information | ||
run: | | ||
ls -la | ||
dotnet --info | ||
- name: Restore dependencies | ||
run: dotnet restore | ||
- name: Build | ||
run: dotnet build --configuration Release --no-restore | ||
- name: Test | ||
run: dotnet test --configuration Release --no-build --verbosity normal | ||
- name: Publish Husky | ||
uses: alirezanet/[email protected] | ||
with: | ||
PROJECT_FILE_PATH: src/Husky/Husky.csproj | ||
INCLUDE_SYMBOLS: true | ||
NUGET_KEY: ${{secrets.NUGET_API_KEY}} |