-
Notifications
You must be signed in to change notification settings - Fork 11
37 lines (33 loc) · 1.11 KB
/
dotnet-core.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
name: .NET Core
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check for secrets leak on the repo
run: |
git clone https://github.com/awslabs/git-secrets.git target
cd target
sudo make install
echo "Git-secrets installation completed"
git secrets --register-aws --global
echo "Added aws secret templates"
git secrets --scan -r ../
echo "Repository scan completed"
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.301
- name: Setup .NET Core 5
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.301
- name: Install dependencies
run: dotnet restore RecommendationTools/RecommendationValidator/RecommendationValidator.csproj
- name: Validate
run: for FILE in ./recommendation/*.recommendation.json ; do dotnet run --project RecommendationTools/RecommendationValidator/RecommendationValidator.csproj --path $FILE; done