Merge pull request #189 from mercadopago/release/2.4.1 #183
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |