Skip to content

Commit

Permalink
Merge pull request #5 from NerosoftDev/master
Browse files Browse the repository at this point in the history
Merge
  • Loading branch information
Codespilot authored Jul 3, 2023
2 parents 0f74066 + 6c5b478 commit d415a3b
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .github/workflows/dotnet-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@

name: Build

on:
push:
branches:
- '*'

jobs:

build:

runs-on: ubuntu-latest
strategy:
matrix:
dotnet-version: [ '7.0.x', '6.0.x' ]
configuration: [Debug, Release]

steps:
- name: Checkout
uses: actions/checkout@v3

# Install the .NET workload
- name: Install .NET ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ matrix.dotnet-version }}

- name: Restore packages
run: dotnet restore Euonia.sln

- name: Build
run: dotnet build --configuration ${{ matrix.configuration }} --no-restore
37 changes: 37 additions & 0 deletions .github/workflows/dotnet-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@

name: Test

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

jobs:

build:

runs-on: ubuntu-latest
strategy:
matrix:
dotnet-version: [ '7.0.x', '6.0.x' ]
configuration: [Debug, Release]

steps:
- name: Checkout
uses: actions/checkout@v3

# Install the .NET workload
- name: Install .NET ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ matrix.dotnet-version }}

- name: Restore packages
run: dotnet restore Euonia.sln

- name: Build
run: dotnet build --configuration Release --no-restore

- name: Test
run: dotnet test --no-restore --verbosity normal
2 changes: 1 addition & 1 deletion .github/workflows/push-nuget.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: .NET
name: Pack

on:
push:
Expand Down

0 comments on commit d415a3b

Please sign in to comment.