Skip to content

Commit

Permalink
update pipeline with cypress docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
Celiant committed Jul 15, 2024
1 parent 138a1fa commit 463bfcd
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/api-manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ jobs:
buildAndTest:
name: Build and Test (Manual)
runs-on: [self-hosted, Linux, medium, ephemeral]
container:
image: cypress/browsers:node-20.14.0-chrome-126.0.6478.114-1-ff-127.0.1-edge-126.0.2592.61-1
options: --user 1001
services:
ipfs-node:
image: ipfs/kubo:latest
Expand Down Expand Up @@ -131,11 +128,13 @@ jobs:
IPFS_PUBLIC_GATEWAY: http://localhost:8080/ipfs/${cid}

- name: Run tests with Cypress
run: |
pushd e2e-tests
npm install --force
npx cypress run --browser chrome --headless --env "portApi=3002,operatorId=${{ secrets.CI_HEDERA_ACCOUNT }},operatorKey=${{ secrets.CI_HEDERA_PRIV_KEY }},grepTags=${{ inputs.tags }},grepFilterSpecs=true" --spec cypress/e2e/api-tests/**/*.cy.js
popd
uses: cypress/browsers:node-20.14.0-chrome-126.0.6478.114-1-ff-127.0.1-edge-126.0.2592.61-1
with:
cmd: pushd e2e-tests
build: npm install --force
start: npx cypress run --headless --env "portApi=3002,operatorId=${{ secrets.CI_HEDERA_ACCOUNT }},operatorKey=${{ secrets.CI_HEDERA_PRIV_KEY }},grepTags=${{ inputs.tags }},grepFilterSpecs=true" --spec cypress/e2e/api-tests/**/*.cy.js
browser: cypress
cmd: popd

- name: Publish API Test Results
uses: EnricoMi/publish-unit-test-result-action@30eadd5010312f995f0d3b3cff7fe2984f69409e # v2.16.1
Expand Down

0 comments on commit 463bfcd

Please sign in to comment.