Skip to content

Commit

Permalink
ci: tests fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tomicvladan committed Mar 18, 2024
1 parent 38fa1b6 commit bcd79c4
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ jobs:
- name: Run fdp-play
run: fdp-play start -d --fairos --fairos-image $FAIROS_IMAGE --bee-version $BEE_VERSION

- name: Run fdp-contracts
run: docker run -d -p 8545:9545 fairdatasociety/fdp-contracts-blockchain:latest

## Try getting the node modules from cache, if failed npm ci
- uses: actions/cache@v3
id: cache-npm
Expand All @@ -112,6 +115,12 @@ jobs:
if: steps.cache-npm.outputs.cache-hit != 'true'
run: npm ci

- name: Buy stamps
run: curl -s -XPOST http://localhost:1635/stamps/10000000/18

- name: Wait to batch become usable
run: sleep 200

- name: Run unit and integration tests for FairOS
run: npm run test:fairos -- --detectOpenHandles

Expand Down Expand Up @@ -143,6 +152,9 @@ jobs:
- name: Run fdp-play
run: fdp-play start -d --bee-version $BEE_VERSION

- name: Run fdp-contracts
run: docker run -d -p 8545:9545 fairdatasociety/fdp-contracts-blockchain:latest

## Try getting the node modules from cache, if failed npm ci
- uses: actions/cache@v3
id: cache-npm
Expand All @@ -157,5 +169,11 @@ jobs:
if: steps.cache-npm.outputs.cache-hit != 'true'
run: npm ci

- name: Buy stamps
run: curl -s -XPOST http://localhost:1635/stamps/10000000/18

- name: Wait to batch become usable
run: sleep 200

- name: Run browser tests
run: npm run test:browser

0 comments on commit bcd79c4

Please sign in to comment.