Suíte de testes para validação de JSON Schema #3
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: REST-assured Tests | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
name: API Tests | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '11' | |
distribution: 'temurin' | |
cache: maven | |
- name: Build | |
run: mvn clean compile | |
- name: Tests | |
run: mvn test | |
continue-on-error: true | |
- name: Upload Reports | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Allure Reports | |
path: "**/allure-results/" | |
retention-days: 90 | |
if-no-files-found: warn |