Skip to content
Open
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
37 changes: 24 additions & 13 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,29 +14,40 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
uses: actions/checkout@v6

- name: Setup Node.js
uses: actions/setup-node@v4
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: 20.x

- name: Install dependencies
- name: Install local dependencies
run: npm ci

- name: Install fdp-play
run: npm install --global @fairdatasociety/fdp-play
- name: Install global dependencies
run: npm install --global bee-dev @fairdatasociety/fdp-play @ethersphere/swarm-cli npxie

- name: Clone fdp-play
run: git clone https://github.com/fairDataSociety/fdp-play

- name: Install fdp-play dependencies
run: |
cd fdp-play && npm install
cd orchestrator && npm install

- name: Build fdp-play images
run: |
cd fdp-play/orchestrator
npm run build:env -- --build-base-bee --bee-repository=Cafe137/inbee4.git

- name: Install swarm-cli
run: npm install --global @ethersphere/swarm-cli
- name: Clean up fdp-play
run: rm -rf fdp-play/test

- name: Run bee-dev
run: npx bee-dev --port 16337 &
run: bee-dev --port 16337 &

- name: Start fdp-play environment
run: fdp-play start --detach --fresh --bee-version d0aa8b9-commit
run: fdp-play start --detach --blockchain-image ethereum/client-go:release-1.13 --bee-version HEAD-commit

- name: Stake
if: false
Expand Down Expand Up @@ -71,7 +82,7 @@ jobs:
- name: Compare coverage
if: github.ref != 'refs/heads/master'
run:
npx [email protected] coverage-comparison "${{ github.repository }}" "master" "${{ github.head_ref }}"
[email protected] coverage-comparison "${{ github.repository }}" "master" "${{ github.head_ref }}"
"test/coverage/coverage-summary.json" "${{ github.event.pull_request.number }}" "${{ secrets.GITHUB_TOKEN }}"

- name: Fail if tests failed
Expand Down
Loading