forked from OpenHack-DevOpsTeam1/source
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (39 loc) · 1.02 KB
/
user-java.yml
File metadata and controls
41 lines (39 loc) · 1.02 KB
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
name: user-java CI
on:
pull_request:
branches: [ main ]
paths:
- 'apis/user-java/**'
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
working-directory: apis/user-java
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: "user-java.yml"
env:
PAT: ${{ secrets.AZDOPAT}}
GithubToken: ${{ secrets.githubtoken}}