Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
chrstph-dvx committed Sep 19, 2024
1 parent 5d0f4b4 commit 9abd6a7
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 10 deletions.
1 change: 1 addition & 0 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ env:
jobs:
load-e2e-files:
name: "Load e2e files"
if: inputs.test_type.type != 'cctp'
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.e2eFiles }}
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/formatSpecfiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@ switch (testType) {
break;
}
case "cctp": {
cctpFiles.forEach((spec) => {
tests.push({
...spec,
type: 'cctp',
})
})
// Running CCTP tests in parallel cause nonce issues, we're running the two tests sequentially
test.push({
name: "cctp",
file: "tests/e2e/specs/**/*Cctp.cy.{js,jsx,ts,tsx}",
recordVideo: false,
type: "cctp",
});
break;
}
}
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/run-cctp-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,19 @@ jobs:
- uses: ./.github/actions/check-files
id: check-files

anything:
name: "debug test"
runs-on: ubuntu-latest
steps:
- name: "step"
run: |
echo ${{ github.event.comment.body }}
build:
name: "Build"
runs-on: ubuntu-latest
needs: [check-files]
if: |
if: >
(needs.check-files.outputs.run_tests == 'true' && ${{ !contains(github.event.pull_request.title, 'hotfix') }}) ||
(contains(github.event.comment.html_url, '/pull/') && github.event.comment.body == '/run-cctp-tests')
steps:
Expand Down
8 changes: 5 additions & 3 deletions packages/arb-token-bridge-ui/synpress.cctp.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,11 @@ export async function fundUsdc({

const shouldRecordVideo = process.env.CYPRESS_RECORD_VIDEO === 'true'

const tests = process.env.TEST_FILE
? [process.env.TEST_FILE]
: specFiles.map(file => file.file)
const tests =
process.env.TEST_FILE &&
specFiles.find(file => file.name === process.env.TEST_FILE)
? [process.env.TEST_FILE]
: specFiles.map(file => file.file)

const INFURA_KEY = process.env.NEXT_PUBLIC_INFURA_KEY
if (typeof INFURA_KEY === 'undefined') {
Expand Down

0 comments on commit 9abd6a7

Please sign in to comment.