-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added cypress workflow, renamed run command
- Loading branch information
1 parent
625fc02
commit 7dce732
Showing
4 changed files
with
65 additions
and
42 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
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,43 @@ | ||
name: Run Cypress on dev | ||
on: | ||
workflow_call: | ||
secrets: | ||
CYPRESS_RECORD_KEY: | ||
required: true | ||
DISCORD_WEBHOOK_URL: | ||
required: true | ||
inputs: | ||
tag: | ||
type: string | ||
required: true | ||
environment: | ||
type: string | ||
required: true | ||
jobs: | ||
cypress-run: | ||
name: Cypress run | ||
runs-on: ubuntu-latest | ||
environment: ${{ inputs.environment }} | ||
steps: | ||
- name: Echo | ||
run: echo "Running Cypress on dev" | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Cypress run | ||
uses: cypress-io/github-action@v5 | ||
with: | ||
record: true | ||
browser: chrome | ||
headless: true | ||
parallel: true | ||
quiet: true | ||
tag: "dev,${{ inputs.tag }}" | ||
ci-build-id: ${{ inputs.tag }} | ||
env: | ||
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} | ||
- name: Send Discord notification | ||
run: | | ||
curl -X POST -H "Content-Type: application/json" -d '{ | ||
"content": "Les tests Cypress sont terminés, le report est dispo sur : https://cloud.cypress.io/projects/vctxdm/runs", | ||
}' ${{ secrets.DISCORD_WEBHOOK_URL }} |
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