Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: use fdp-play #495

Merged
merged 35 commits into from
Sep 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
e5844ad
ci: use fdp-play
Cafe137 Mar 6, 2024
33625de
ci: run tests with node 18
Cafe137 Mar 6, 2024
c0fcdab
chore: merge
Cafe137 Sep 16, 2024
cbc0930
ci: use latest fdp-play
Cafe137 Sep 16, 2024
5cd3ccc
ci: use full package name
Cafe137 Sep 16, 2024
4eab219
test: remove stamp from feed print
Cafe137 Sep 16, 2024
1fcc085
test: remove large upload warnings
Cafe137 Sep 16, 2024
3bd5873
fix: remove 0x in bzz address
Cafe137 Sep 16, 2024
754ac0c
fix: remove indices from curl tests
Cafe137 Sep 16, 2024
da34318
fix: pass arg first
Cafe137 Sep 16, 2024
90a5c40
fix: increase test amount
Cafe137 Sep 16, 2024
afaf6bb
fix: fix bad tests
Cafe137 Sep 16, 2024
ff24339
test: add mock stake endpoint
Cafe137 Sep 16, 2024
68b55ff
fix: fix amounts in tests
Cafe137 Sep 16, 2024
389524c
fix: fix tests
Cafe137 Sep 16, 2024
ba91cec
test: make default stamp larger
Cafe137 Sep 16, 2024
e17e541
chore: bump bee-js
Cafe137 Sep 16, 2024
58810f1
ci: trigger
Cafe137 Sep 16, 2024
36ebde5
chore: bump bee-js
Cafe137 Sep 16, 2024
2d98d26
test: add root slash endpoint to mock server
Cafe137 Sep 16, 2024
7b8187e
fix: add missing fields to mock server
Cafe137 Sep 16, 2024
8a54f15
chore: look for patterns instead of indices
Cafe137 Sep 16, 2024
aa32c12
chore: look for patterns instead of indices
Cafe137 Sep 16, 2024
ffc58c8
fix: make chequebook balances strings
Cafe137 Sep 16, 2024
6822e4b
fix: replace stamp with test_stamp for tests
Cafe137 Sep 16, 2024
3f5e248
fix: fix expected values in tests
Cafe137 Sep 16, 2024
dc98043
fix: improve detection of 404
Cafe137 Sep 16, 2024
525679b
fix: adjust expected error messages
Cafe137 Sep 16, 2024
f24fc69
test: remove skip from all tests
Cafe137 Sep 16, 2024
9d9eb71
test: disable tests which may root from bee
Cafe137 Sep 16, 2024
b6ba723
ci: trigger
Cafe137 Sep 16, 2024
68e5274
ci: trigger
Cafe137 Sep 16, 2024
debd0e2
fix: change line order
Cafe137 Sep 16, 2024
58dfb95
fix: change line order
Cafe137 Sep 16, 2024
8a28f67
test: change removed lines order
Cafe137 Sep 16, 2024
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
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
Loading