-
Notifications
You must be signed in to change notification settings - Fork 70
38 lines (30 loc) · 975 Bytes
/
CI.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
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: Build and run tests
runs-on: [ubuntu-latest]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
# Build
- name: Install dependencies
run: dotnet restore src/MercadoPago/MercadoPago.csproj
- name: Build
run: dotnet build src/MercadoPago/MercadoPago.csproj --configuration Release --no-restore
# Run Tests
- name: Install tests dependencies
run: dotnet restore src/MercadoPago.Tests/MercadoPago.Tests.csproj
- name: Run tests
run: dotnet test src/MercadoPago.Tests/MercadoPago.Tests.csproj -f net6.0 --configuration Release --no-restore
env:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
USER_EMAIL: ${{ secrets.USER_EMAIL }}