Skip to content

Commit

Permalink
ci: use fdp-play (#495)
Browse files Browse the repository at this point in the history
* ci: use fdp-play

* ci: run tests with node 18

* ci: use latest fdp-play

* ci: use full package name

* test: remove stamp from feed print

* test: remove large upload warnings

* fix: remove 0x in bzz address

* fix: remove indices from curl tests

* fix: pass arg first

* fix: increase test amount

* fix: fix bad tests

* test: add mock stake endpoint

* fix: fix amounts in tests

* fix: fix tests

* test: make default stamp larger

* chore: bump bee-js

* ci: trigger

* chore: bump bee-js

* test: add root slash endpoint to mock server

* fix: add missing fields to mock server

* chore: look for patterns instead of indices

* chore: look for patterns instead of indices

* fix: make chequebook balances strings

* fix: replace stamp with test_stamp for tests

* fix: fix expected values in tests

* fix: improve detection of 404

* fix: adjust expected error messages

* test: remove skip from all tests

* test: disable tests which may root from bee

* ci: trigger

* ci: trigger

* fix: change line order

* fix: change line order

* test: change removed lines order
  • Loading branch information
Cafe137 authored Sep 16, 2024
1 parent 05cb0ed commit 0d2a4d5
Show file tree
Hide file tree
Showing 20 changed files with 211 additions and 7,933 deletions.
21 changes: 6 additions & 15 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:

strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
node-version: [18.x]

steps:
- name: Checkout
Expand All @@ -44,21 +44,12 @@ jobs:
restore-keys: |
${{ runner.OS }}-node-${{ matrix.node }}-${{ env.cache-name }}-
${{ runner.OS }}-node-${{ matrix.node }}-
- name: Install npm deps
if: steps.cache-npm.outputs.cache-hit != 'true'
run: npm ci
# Start Bee Factory environment
- name: Start Bee Factory environment
if: matrix.node-version != '18.x' && matrix.node-version != '19.x'
run: npm run bee -- --verbose --detach
- name: Install npm deps
run: npm install -g npm && npm ci && npm install -g @fairdatasociety/fdp-play

# Start Bee Factory environment for Node 18 and 19
- name: Start Bee Factory environment for Node 18 and 19
if: matrix.node-version == '18.x' || matrix.node-version == '19.x'
env:
NODE_OPTIONS: '--no-experimental-fetch'
run: npm run bee -- --verbose --detach
- name: Start fdp-play environment
run: npm run bee

- name: Run node tests
- name: Tests
run: npm run test
4 changes: 2 additions & 2 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ export default async (): Promise<Config.InitialOptions> => {
process.env.WORKER_PSS_ADDRESS = await getPssAddress('http://localhost:11633')
}

if (!process.env.STAMP) {
process.env.STAMP = await getOrBuyStamp()
if (!process.env.TEST_STAMP) {
process.env.TEST_STAMP = await getOrBuyStamp()
}

return {
Expand Down
Loading

0 comments on commit 0d2a4d5

Please sign in to comment.