Skip to content
Closed
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/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,32 +22,43 @@ jobs:

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

- name: Set up Node.js
uses: actions/setup-node@v1
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: Run bee-dev with --no-swap
run: npx bee-dev --port 16338 --no-swap &
run: bee-dev --port 16338 --no-swap &

- name: Start fdp-play environment
run: fdp-play start --detach --fresh --bee-version ${{ matrix.bee-version }}
run: fdp-play start --detach --blockchain-image ethereum/client-go:release-1.13 --bee-version HEAD-commit

- name: Deposit to chequebook
run: |
Expand All @@ -67,5 +78,5 @@ jobs:
- name: Compare coverage
if: github.ref != 'refs/heads/master'
run:
npx npxie coverage-comparison "${{ github.repository }}" "master" "${{ github.head_ref }}"
npxie coverage-comparison "${{ github.repository }}" "master" "${{ github.head_ref }}"
"test/coverage/coverage-summary.json" "${{ github.event.pull_request.number }}" "${{ secrets.GITHUB_TOKEN }}"