Merge pull request #81 from obnews/main #111
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: CI/CD | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
build: | |
name: Build and Test | |
runs-on: windows-latest | |
steps: | |
- name: 🛒 Checkout | |
uses: actions/checkout@v3 | |
- name: ✨ Setup .NET 6 | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: "6.0.x" | |
- name: 🚚 Restore | |
run: dotnet restore src | |
- name: 🛠️ Build | |
run: dotnet build src --configuration Release --no-restore | |
- name: 🧪 Test | |
run: dotnet test src --configuration Release --no-build |