Skip to content

Commit

Permalink
GitHub Actions Pipeline CI
Browse files Browse the repository at this point in the history
  • Loading branch information
thinogueiras committed Mar 1, 2024
1 parent 661028e commit daffcb5
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 3 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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@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
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Testes de API com REST-assured e JUnit 5.

[![REST-assured Tests](https://github.com/thinogueiras/REST-assured/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/thinogueiras/REST-assured/actions/workflows/ci.yml)

## Pré-requisitos mínimos de ambiente:

* [Java](https://www.oracle.com/br/java/technologies/downloads/#java11) 11.0.x.
Expand Down Expand Up @@ -28,7 +30,7 @@ git clone https://github.com/thinogueiras/REST-assured.git
### Terminal:

```
mvn clean test
mvn test
```

## Relatório:
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
<argLine>
-javaagent:"${settings.localRepository}/org/aspectj/aspectjweaver/${aspectj.version}/aspectjweaver-${aspectj.version}.jar"
</argLine>
<systemProperties>
<systemPropertyVariables>
<property>
<name>allure.results.directory</name>
<value>${project.basedir}/allure-results</value>
Expand All @@ -90,7 +90,7 @@
<name>junit.jupiter.extensions.autodetection.enabled</name>
<value>true</value>
</property>
</systemProperties>
</systemPropertyVariables>
<reportFormat>plain</reportFormat>
</configuration>
<dependencies>
Expand Down

0 comments on commit daffcb5

Please sign in to comment.