Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 31 additions & 14 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,38 @@
name: Build

on: [ push ]
on:
push:
pull_request:
branches: [ main ]
paths:
- '**.cs'
- '**.csproj'

jobs:
build:
runs-on: ubuntu-latest
env:
DOTNET_VERSION: '6.0.x' # The .NET SDK version to use

steps:
- uses: actions/checkout@v2
jobs:
build-and-test:

- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.201
name: build-and-test-${{matrix.os}}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]

- name: Test
run: dotnet test ./Hashids.net.sln
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

- name: Build RELEASE config
run: dotnet build ./Hashids.net.sln --configuration Release
- name: Install dependencies
run: dotnet restore

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

- name: Test
run: dotnet test --no-restore --verbosity normal