generated from Azure-Samples/openhack-devops-team
-
Notifications
You must be signed in to change notification settings - Fork 4
42 lines (39 loc) · 1.01 KB
/
poi.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
40
41
42
name: POI CI
on:
pull_request:
branches: [ main ]
paths:
- 'apis/poi/**'
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
working-directory: apis/poi
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test 'tests/UnitTests/UnitTests.csproj' --no-build --verbosity normal
- name: The job has failed
uses: stefanstranger/azuredevops-bug-action@1.1
if: failure()
with:
OrganizationName: "hacker2fet"
PAT: "PAT"
ProjectName: "OpenHack"
AreaPath: "OpenHack"
IterationPath: "OpenHack\\Iteration 1"
GithubToken: "GithubToken"
WorkflowFileName: "poi.yml"
env:
PAT: ${{ secrets.AZDOPAT}}
GithubToken: ${{ secrets.githubtoken}}