Changed action triggers #7
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
name: .NET Core CI | |
on: | |
push: | |
branches: | |
- main # eller annat | |
- Andreybranch | |
- Niklasbranch | |
- master | |
pull_request: | |
branches: | |
- main | |
- Andreybranch | |
- Niklasbranch | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: '6.x' # eller den version du vill använda | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Build | |
run: dotnet build --configuration Release --no-restore | |
- name: Run Unit Tests | |
run: dotnet test --no-build --verbosity normal |