Skip to content

Commit

Permalink
chore: fix workflow (add checkout code step)
Browse files Browse the repository at this point in the history
  • Loading branch information
alirezanet committed Nov 16, 2023
1 parent 476f9c2 commit f819724
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 37 deletions.
36 changes: 19 additions & 17 deletions .github/workflows/build.yml
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
43 changes: 23 additions & 20 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}

0 comments on commit f819724

Please sign in to comment.