Skip to content

add ci for dotnet (#100) #7

add ci for dotnet (#100)

add ci for dotnet (#100) #7

Workflow file for this run

name: Build
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: ["main"]
pull_request:
branches: ["main"]
merge_group:
workflow_dispatch: {}
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
todo-app:
name: TodoApp
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ./.github/actions/setup
- name: Build TodoApp Asp.Net
run: dotnet build
working-directory: ./todoApp/servers/aspnet
petstore:
name: PetStore
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ./.github/actions/setup
- name: Build TodoApp Asp.Net
run: dotnet build
working-directory: ./petstore/servers/aspnet