Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom PR title #35

Closed
wants to merge 10 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions .github/workflows/currents.yml → .github/currents.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Cypress Tests

on:
push:
pull_request:

jobs:
cypress-tests:
Expand All @@ -23,13 +23,20 @@ jobs:
with:
node-version: 16

- name: Print Event Payload
run: |
cat $GITHUB_EVENT_PATH

- name: Print Env variables
run: |
printenv

# Install Currents
- name: Install dependencies
run: |
npx ci

- name: Unblock Cypress
# working-directory: "services/rails"
run: |
echo 🕊️ Download Free Cypress
CYPRESS_DOWNLOAD_MIRROR=https://cy-cdn.currents.dev npx cypress install --force
Expand All @@ -52,7 +59,7 @@ jobs:
# 🔥 Set to false to prevent restoring cached blocking Cypress binary
install: false
command: |
npx cypress-cloud --record --parallel --browser chrome --key ${{ secrets.CURRENTS_RECORD_KEY }} --ci-build-id "${{ github.repository }}-${{ github.run_id }}-${{ github.run_attempt}}"
npx cypress-cloud --record --parallel --browser chrome --key ${{ secrets.CURRENTS_RECORD_KEY }} --ci-build-id ${{ github.repository }}-${{ github.run_id }}-${{ github.run_attempt}}

- name: Cancel the run if workflow is cancelled
if: ${{ cancelled() }}
Expand Down
73 changes: 73 additions & 0 deletions .github/workflows/currents-staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: Cypress Tests Staging

on:
pull_request:

jobs:
cypress-tests:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
# run 3 copies of the current job in parallel
containers: [1, 2, 3]
steps:
- name: Checkout
uses: actions/checkout@v3
# populate commit message for merge commits
# see https://currents.dev/readme/ci-setup/github-actions
# with:
# ref: ${{ github.event.pull_request.head.sha }}

- uses: actions/setup-node@v3
with:
node-version: 18

- name: Print Event Payload
run: |
cat $GITHUB_EVENT_PATH

- name: Print Env variables
run: |
printenv

# Install Currents
- name: Install dependencies
run: |
npx ci

- name: Unblock Cypress
run: |
echo 🕊️ Download Free Cypress
CYPRESS_DOWNLOAD_MIRROR=https://cy-cdn.currents.dev npx cypress install --force

echo ✅ Verify Cypress
npx cypress verify

echo 👀 Cypress Cache
npx cypress cache list
npx cypress cache path

- name: Run Cypress on Currents.dev
env:
# enable verbose logging
DEBUG: \@cypress/github-action
CURRENTS_ENFORCE_IS_CURRENTS: 1
CURRENTS_PROJECT_ID: 9aOuF6
CURRENTS_API_URL: https://cy-staging.currents.dev
uses: cypress-io/github-action@v6
continue-on-error: true

with:
# 🔥 Set to false to prevent restoring cached blocking Cypress binary
install: false
command: |
npx cypress-cloud --record --parallel --browser chrome --key ${{ secrets.CURRENTS_RECORD_KEY_STAGING }} --ci-build-id ${{ github.repository }}-${{ github.run_id }}-${{ github.run_attempt}}

- name: Cancel the run if workflow is cancelled
if: ${{ cancelled() }}
uses: currents-dev/cancel-run-gh-action@v1
with:
api-token: ${{ secrets.CURRENTS_API_KEY_STAGING }}
github-run-id: ${{ github.run_id }}
github-run-attempt: ${{ github.run_attempt }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ yarn-debug.log*
yarn-error.log*
lerna-debug.log*

cypress-traces
# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"license": "ISC",
"dependencies": {
"cypress": "12.17.4",
"cypress-cloud": "^1.9.6",
"cypress-cloud": "1.10.0-alpha.0",
"typescript": "^5.0.2"
}
}
37 changes: 15 additions & 22 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
resolved "https://registry.yarnpkg.com/@colors/colors/-/colors-1.5.0.tgz#bb504579c1cae923e6576a4f5da43d25f97bdbd9"
integrity sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==

"@cypress/commit-info@^2.2.0":
version "2.2.0"
resolved "https://registry.yarnpkg.com/@cypress/commit-info/-/commit-info-2.2.0.tgz#6086d478975edb7ac7c9ffdd5cfd5be2b9fe44f2"
integrity sha512-A7CYS0Iqp/u52JTnSWlDFjWMKx7rIfd+mk0Fdksrcs4Wdf5HXPsoZO475VJ+xL7LPhJrjKhgyl/TPKO3worZyQ==
"@currents/commit-info@1.0.1-beta.0":
version "1.0.1-beta.0"
resolved "https://registry.yarnpkg.com/@currents/commit-info/-/commit-info-1.0.1-beta.0.tgz#c33112685c27896bba29064234fd2341ec9134e6"
integrity sha512-gkn8E3UC+F4/fCla7QAGMGgGPzxZUL9bU9+4I+KZf9PtCU3DdQCdy7a+er2eg4ewfUzZ2Ic1HcfnHuPkuLPKIw==
dependencies:
bluebird "3.5.5"
check-more-types "2.24.0"
debug "4.1.1"
debug "4.3.4"
execa "1.0.0"
lazy-ass "1.6.0"
ramda "0.26.1"
Expand Down Expand Up @@ -452,12 +452,12 @@ cy2@^3.4.2:
npm-which "^3.0.1"
slash "3.0.0"

cypress-cloud@^1.9.6:
version "1.9.6"
resolved "https://registry.yarnpkg.com/cypress-cloud/-/cypress-cloud-1.9.6.tgz#a2a8335621bce30a575e2f293a7e63193bda6b17"
integrity sha512-cF1+Eqpscm9H0CkHdRxgleW+sSBCL3e614KeEKaghROLYrTTvep8vSouSBqWAsJ6tzaNJK4ybVIfDFswNP1bHQ==
cypress-cloud@1.10.0-alpha.0:
version "1.10.0-alpha.0"
resolved "https://registry.yarnpkg.com/cypress-cloud/-/cypress-cloud-1.10.0-alpha.0.tgz#a59e3cd0fa9dbf71625a22a63190d6f1986c2b0e"
integrity sha512-cAgD9j2SEfFf39klGGPwtE+CmFxlNLMfmn+nRPtkEoBMtLxVrL6eD8cQyzp8Kkv3Skl1i1JRmmN1ISJHdniE1g==
dependencies:
"@cypress/commit-info" "^2.2.0"
"@currents/commit-info" "1.0.1-beta.0"
axios "^1.2.0"
axios-retry "^3.4.0"
bluebird "^3.7.2"
Expand Down Expand Up @@ -542,12 +542,12 @@ dayjs@^1.10.4:
resolved "https://registry.yarnpkg.com/dayjs/-/dayjs-1.11.10.tgz#68acea85317a6e164457d6d6947564029a6a16a0"
integrity sha512-vjAczensTgRcqDERK0SR2XMwsF/tSvnvlv6VcF2GIhg6Sx4yOIt/irsr1RDJsKiIyBzJDpCoXiWWq28MqH2cnQ==

debug@4.1.1:
version "4.1.1"
resolved "https://registry.yarnpkg.com/debug/-/debug-4.1.1.tgz#3b72260255109c6b589cee050f1d516139664791"
integrity sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==
debug@4.3.4, debug@^4.1.1, debug@^4.3.2, debug@^4.3.4:
version "4.3.4"
resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865"
integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==
dependencies:
ms "^2.1.1"
ms "2.1.2"

debug@^3.1.0:
version "3.2.7"
Expand All @@ -556,13 +556,6 @@ debug@^3.1.0:
dependencies:
ms "^2.1.1"

debug@^4.1.1, debug@^4.3.2, debug@^4.3.4:
version "4.3.4"
resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865"
integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==
dependencies:
ms "2.1.2"

define-data-property@^1.1.1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/define-data-property/-/define-data-property-1.1.1.tgz#c35f7cd0ab09883480d12ac5cb213715587800b3"
Expand Down
Loading