Skip to content

Commit

Permalink
bump action version
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniosb committed Aug 22, 2023
1 parent 61dda1f commit 5d7f6f4
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 14 deletions.
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# cypress-evaluator-action

Cypress evaluator action for Tryber projects

This action evaluate Tryber projects with [Cypress](https://www.npmjs.com/package/cypress) library.
Expand All @@ -11,7 +12,7 @@ This action evaluate Tryber projects with [Cypress](https://www.npmjs.com/packag

**Default: false**

Run npm start and waits to http://localhost:3000 before testing.
Run npm start and waits to <http://localhost:3000> before testing.

- `headless`

Expand All @@ -38,17 +39,19 @@ This action evaluate Tryber projects with [Cypress](https://www.npmjs.com/packag
Cypress unit tests JSON results in base64 format.

## Simple usage example

```yml
uses: betrybe/cypress-evaluator-action@v7
uses: betrybe/cypress-evaluator-action@v8.2
with:
pr_author_username: ${{ github.event.inputs.pr_author_username }}
```
## How to get result output
```yml
- name: Cypress evaluator
id: evaluator
uses: betrybe/cypress-evaluator-action@v7
uses: betrybe/cypress-evaluator-action@v8.2
with:
pr_author_username: ${{ github.event.inputs.pr_author_username }}
- name: Next step
Expand Down Expand Up @@ -107,4 +110,4 @@ where the `"requirement #1"`, `"requirement #2"` and `"requirement #3"` are the

## Learn about GitHub Actions

- https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-a-docker-container-action
- <https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-a-docker-container-action>
20 changes: 10 additions & 10 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
name: 'Cypress evaluator'
description: 'Cypress evaluator action for Tryber projects'
name: "Cypress evaluator"
description: "Cypress evaluator action for Tryber projects"
inputs:
npm-start:
description: 'Run npm start and waits to http://localhost:3000 before testing'
description: "Run npm start and waits to http://localhost:3000 before testing"
default: false
headless:
description: 'Hide the browser instead of running headed at Cypress running'
description: "Hide the browser instead of running headed at Cypress running"
default: true
browser:
description: 'Define what browser Cypress must run'
default: 'chrome'
description: "Define what browser Cypress must run"
default: "chrome"
pr_author_username:
description: 'Pull Request author username'
description: "Pull Request author username"
required: true
outputs:
result:
description: 'Cypress unit tests JSON results in base64 format.'
description: "Cypress unit tests JSON results in base64 format."
runs:
using: 'docker'
image: 'docker://betrybe/cypress-evaluator-action:v8.1'
using: "docker"
image: "docker://betrybe/cypress-evaluator-action:v8.2"
args:
- ${{ inputs.npm-start }}
- ${{ inputs.headless }}
Expand Down

0 comments on commit 5d7f6f4

Please sign in to comment.