-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Gera base64 do resultado dos testes + Ajustes de linter
- Loading branch information
Showing
19 changed files
with
3,198 additions
and
854 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"commonjs": true, | ||
"es2021": true | ||
}, | ||
// "extends": "eslint:recommended", | ||
"parserOptions": { | ||
"ecmaVersion": "latest" | ||
}, | ||
"ignorePatterns": ["**/dist/", "test/", "**/node_modules/**"], | ||
"rules": { | ||
"indent": [ | ||
"error", | ||
2 | ||
], | ||
"linebreak-style": [ | ||
"error", | ||
"unix" | ||
], | ||
"quotes": [ | ||
"error", | ||
"single" | ||
], | ||
"semi": [ | ||
"error", | ||
"never" | ||
] | ||
} | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
nodejs 18.17.0 |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,55 @@ | ||
name: 'JUnit evaluator' | ||
description: 'JUnit evaluator for Tryber projects in android' | ||
name: "JUnit evaluator" | ||
description: "JUnit evaluator for Tryber projects in android" | ||
inputs: | ||
unit_test: | ||
description: 'Unit test' | ||
description: "Unit test" | ||
required: false | ||
default: 'true' | ||
default: "true" | ||
instrumented_test: | ||
description: 'Instrumented_test test' | ||
description: "Instrumented_test test" | ||
required: false | ||
default: 'false' | ||
default: "false" | ||
pr_author_username: | ||
description: 'Pull Request author username' | ||
description: "Pull Request author username" | ||
required: true | ||
|
||
outputs: | ||
result: | ||
description: 'JUnit unit tests JSON results in base64 format' | ||
result: | ||
description: "JUnit unit tests JSON results in base64 format" | ||
value: ${{ steps.get_junit_results.outputs.result }} | ||
|
||
runs: | ||
using: 'composite' | ||
using: "composite" | ||
steps: | ||
- name: Set up Nodejs 16 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '16' | ||
- name: Set up Nodejs 16 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "16" | ||
|
||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'zulu' | ||
java-version: '11' | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: "zulu" | ||
java-version: "17" | ||
|
||
- name: Gradle cache | ||
uses: gradle/gradle-build-action@v2 | ||
- name: Gradle cache | ||
uses: gradle/gradle-build-action@v2 | ||
|
||
- name: Run Unit tests | ||
if: ${{ inputs.unit_test == 'true' }} | ||
run: ./gradlew test | ||
shell: bash | ||
- name: Run Unit tests | ||
if: ${{ inputs.unit_test == 'true' }} | ||
run: ./gradlew test | ||
shell: bash | ||
|
||
- name: Run Instrumented tests | ||
uses: reactivecircus/android-emulator-runner@v2 | ||
if: ${{ inputs.instrumented_test == 'true' }} | ||
with: | ||
api-level: 29 | ||
script: ./gradlew connectedCheck | ||
- name: Run Instrumented tests | ||
uses: reactivecircus/android-emulator-runner@v2 | ||
if: ${{ inputs.instrumented_test == 'true' }} | ||
with: | ||
api-level: 29 | ||
script: ./gradlew connectedCheck | ||
|
||
- name: Get JUnit results | ||
run: node $GITHUB_ACTION_PATH/dist/index.js | ||
shell: bash | ||
env: | ||
INPUT_PR_AUTHOR_USERNAME: ${{inputs.pr_author_username}} | ||
- name: Get JUnit results | ||
id: get_junit_results | ||
run: node $GITHUB_ACTION_PATH/dist/index.js | ||
shell: bash | ||
env: | ||
INPUT_PR_AUTHOR_USERNAME: ${{inputs.pr_author_username}} |
Oops, something went wrong.