-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (26 loc) · 899 Bytes
/
build-test.yaml
File metadata and controls
30 lines (26 loc) · 899 Bytes
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
# This is a basic workflow to help you get started with Actions
name: Build Docker container, Push to ACR and Deploy to Azure Container Instance.
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
pull_request:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
# checkout the repo
- name: 'Checkout GitHub Action'
uses: actions/checkout@main
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
- name: Restore dotnet dependencies
run: dotnet restore
- name: Build dotnet projects
run: dotnet build
- name: Run unit tests
run: dotnet test