diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..23bcf74 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,37 @@ +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@v3 + - name: Set up JDK 11 + uses: actions/setup-java@v3 + 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 \ No newline at end of file diff --git a/README.md b/README.md index 336361a..e82780e 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ git clone https://github.com/thinogueiras/REST-assured.git ### Terminal: ``` -mvn clean test +mvn test ``` ## Relatório: