Merge pull request #12 from The-Standard-Organization/users/ZafarUrak… #27
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 | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
- reopened | |
- closed | |
branches: | |
- main | |
env: | |
IS_RELEASE_CANDIDATE: >- | |
${{ | |
( | |
github.event_name == 'pull_request' && | |
startsWith(github.event.pull_request.title, 'RELEASES:') && | |
contains(github.event.pull_request.labels.*.name, 'RELEASES') | |
) | |
|| | |
( | |
github.event_name == 'push' && | |
startsWith(github.event.head_commit.message, 'RELEASES:') && | |
startsWith(github.ref_name, 'RELEASE') | |
) | |
}} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out | |
uses: actions/checkout@v3 | |
- name: Setup .Net | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 7.0.201 | |
- name: Restore | |
run: dotnet restore | |
- name: Build | |
run: dotnet build --no-restore | |
- name: Test | |
run: dotnet test --no-build --verbosity normal |