Skip to content

Commit

Permalink
Updates workkflow definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
matzefriedrich committed Apr 15, 2024
1 parent d913dd4 commit 345c117
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 36 deletions.
30 changes: 0 additions & 30 deletions .github/workflows/dotnet-core.yml

This file was deleted.

17 changes: 13 additions & 4 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@ name: .NET

on:
push:
branches: [ "master" ]
branches:
- master
- develop
pull_request:
branches: [ "master" ]

jobs:
build:

runs-on: ubuntu-latest
env:
working-directory: ./src

steps:
- uses: actions/checkout@v4
Expand All @@ -20,7 +23,13 @@ jobs:
dotnet-version: 8.0.x

- name: Restore dependencies
run: dotnet restore src/System.CommandLine.Extensions.sln
working-directory: ${{env.working-directory}}
run: dotnet restore System.CommandLine.Extensions.sln

- name: Build
run: dotnet build src/System.CommandLine.Extensions.sln --no-restore
working-directory: ${{env.working-directory}}
run: dotnet build System.CommandLine.Extensions.sln --no-restore

- name: Test
working-directory: ${{env.working-directory}}
run: dotnet test System.CommandLine.Extensions.sln --no-restore --verbosity normal
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
.vs/
.idea/
.github/

bin/
obj/
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![.NET Core](https://github.com/matzefriedrich/command-line-api-extensions/workflows/.NET%20Core/badge.svg)
![.NET 8](https://github.com/matzefriedrich/command-line-api-extensions/workflows/dotnet.yml/badge.svg)

# System.CommandLine.Extensions

Expand Down

0 comments on commit 345c117

Please sign in to comment.