Skip to content

Commit 373fc8d

Browse files
committed
adicionando github actions
1 parent 1594b2d commit 373fc8d

5 files changed

Lines changed: 2264 additions & 1 deletion

File tree

.github/workflows/cypress.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Cypress Tests
2+
on: [push]
3+
jobs:
4+
cypress-run:
5+
runs-on: ubuntu-latest
6+
# Runs tests in parallel with matrix strategy https://docs.cypress.io/guides/guides/parallelization
7+
# https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs
8+
# Also see warning here https://github.com/cypress-io/github-action#parallel
9+
strategy:
10+
fail-fast: false # https://github.com/cypress-io/github-action/issues/48
11+
matrix:
12+
containers: [1, 2] # Uses 2 parallel instances
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
- name: Cypress run
17+
# Uses the official Cypress GitHub action https://github.com/cypress-io/github-action
18+
uses: cypress-io/github-action@v6
19+
with:
20+
# Starts web server for E2E tests - replace with your own server invocation
21+
# https://docs.cypress.io/guides/continuous-integration/introduction#Boot-your-server
22+
install-command: npm install
23+
wait-on: 'https://petlov.vercel.app/' # Waits for above
24+
# Records to Cypress Cloud
25+
# https://docs.cypress.io/guides/cloud/projects#Set-up-a-project-to-record
26+
record: true
27+
parallel: true # Runs test in parallel using settings above
28+
env:
29+
# For recording and parallelization to work you must set your CYPRESS_RECORD_KEY
30+
# in GitHub repo → Settings → Secrets → Actions
31+
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
32+
# Creating a token https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+

.mcp-debug-tools/config.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"vscodeInstanceId": "vscode-44916-1768436880181",
3+
"port": 8891,
4+
"pid": 44916,
5+
"workspacePath": "/home/leonardo/NinjaDoCypress/petlov-template",
6+
"workspaceName": "petlov-template"
7+
}

cypress.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
module.exports = {
2+
projectId: "ecst9n",
23
e2e: {
34
setupNodeEvents(on, config) {
45
// implement node event listeners here

0 commit comments

Comments
 (0)