-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (32 loc) · 1 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Build and Publish
env:
PROJECT_NAME: AutomatedTestingApp.csproj
PROJECT_PATH: ./AutomatedTestingApp/AutomatedTestingApp
on:
check_run:
types: [rerequested, completed]
workflow_dispatch:
push:
pull_request:
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
global-json: 'global.json'
- name: Install dependencies
run: dotnet restore
working-directory: ./AutomatedTestingApp
- name: Build
run: |
dotnet build ${{ env.PROJECT_NAME }} --configuration Release --no-restore
working-directory: ${{ env.PROJECT_PATH }}
- name: Publish
run: |
dotnet publish ${{ env.PROJECT_NAME }} --no-build --no-restore --configuration Release --output ./publish
working-directory: ${{ env.PROJECT_PATH }}
#TODO: Add tests here