Skip to content

Commit

Permalink
Add environments
Browse files Browse the repository at this point in the history
  • Loading branch information
pshenmic committed Mar 13, 2024
1 parent 2c67b87 commit f157591
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@ jobs:
postgres:
image: postgres
env:
POSTGRES_USER: test
POSTGRES_PASSWORD: test
POSTGRES_DATABASE: test
POSTGRES_HOST: 127.0.0.1
options: >-
--health-cmd pg_isready
--health-interval 10s
Expand All @@ -48,7 +45,7 @@ jobs:
run: cd packages/api && npm install

- name: Run integration tests
run: cd packages/api && npm run test:integration
run: cd packages/api && POSTGRES_HOST=127.0.0.1 POSTGRES_DB=postgres POSTGRES_USER=postges POSTGRES_PASS=test POSTGRES_DB=test npm run test:integration

build_api:
runs-on: ubuntu-latest
Expand Down
4 changes: 0 additions & 4 deletions packages/api/test/utils/fixtures.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
const Block = require("../../src/models/Block");
const BlockHeader = require("../../src/models/BlockHeader");
const Transaction = require("../../src/models/Transaction");
const data = Uint8Array.from([1, 2, 3]);
const {base58} = require('@scure/base')
const crypto = require('crypto')
const {StateTransitionEnum} = require("../../src/constants");
Expand Down

0 comments on commit f157591

Please sign in to comment.