Skip to content

Merge pull request #187 from mercadopago/enhancement/increase-dotnet-… #176

Merge pull request #187 from mercadopago/enhancement/increase-dotnet-…

Merge pull request #187 from mercadopago/enhancement/increase-dotnet-… #176

Workflow file for this run

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 }}