Skip to content

Commit

Permalink
ci(satp-hermes): add satp-hermes to ci
Browse files Browse the repository at this point in the history
Signed-off-by: André Augusto <andre.augusto@tecnico.ulisboa.pt>
  • Loading branch information
AndreAugusto11 committed Mar 8, 2024
1 parent 1fb18d2 commit 0f5d5e9
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 27 deletions.
52 changes: 25 additions & 27 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1728,33 +1728,31 @@ jobs:
restore-keys: |
${{ runner.os }}-yarn-${{ hashFiles('./yarn.lock') }}
- run: ./tools/ci.sh
# cactus-plugin-satp-hermes:
# continue-on-error: false
# env:
# FULL_BUILD_DISABLED: true
# JEST_TEST_PATTERN: packages/cactus-plugin-satp-hermes/src/test/typescript/(unit|integration|benchmark)/.*/*.test.ts
# JEST_TEST_RUNNER_DISABLED: false
# TAPE_TEST_RUNNER_DISABLED: true
# needs: build-dev
# runs-on: ubuntu-20.04
# steps:
# - name: Use Node.js ${{ env.NODEJS_VERSION }}
# uses: actions/setup-node@v3.6.0
# with:
# node-version: ${{ env.NODEJS_VERSION }}
# - uses: actions/checkout@v3.5.2
# - id: yarn-cache-dir-path
# name: Get yarn cache directory path
# run: echo "::set-output name=dir::$(yarn cache dir)"
# - id: yarn-cache
# name: Restore Yarn Cache
# uses: actions/cache@v3.3.1
# with:
# key: ${{ runner.os }}-yarn-${{ hashFiles('./yarn.lock') }}
# path: ./.yarn/
# restore-keys: |
# ${{ runner.os }}-yarn-
# - run: ./tools/ci.sh
cactus-plugin-satp-hermes:
continue-on-error: false
env:
FULL_BUILD_DISABLED: true
JEST_TEST_RUNNER_DISABLED: false
JEST_TEST_PATTERN: packages/cactus-plugin-satp-hermes/src/test/typescript/(unit|integration|benchmark)/.*/*.test.ts
TAPE_TEST_RUNNER_DISABLED: true
needs: build-dev
runs-on: ubuntu-20.04
steps:
- name: Use Node.js ${{ env.NODEJS_VERSION }}
uses: actions/setup-node@v3.6.0
with:
node-version: ${{ env.NODEJS_VERSION }}
- uses: actions/checkout@v3.5.2

- id: yarn-cache
name: Restore Yarn Cache
uses: actions/cache@v3.3.1
with:
key: ${{ runner.os }}-yarn-${{ hashFiles('./yarn.lock') }}
path: ./.yarn/
restore-keys: |
${{ runner.os }}-yarn-${{ hashFiles('./yarn.lock') }}
- run: ./tools/ci.sh
cactus-plugin-connector-ubiquity:
continue-on-error: false
env:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -742,6 +742,7 @@ test("client gateway crashes after lock fabric asset", async () => {

// now we simulate the crash of the client gateway
pluginSourceGateway.localRepository?.destroy();
pluginSourceGateway.remoteRepository?.destroy();
await Servers.shutdown(sourceGatewayServer);

const expressApp = express();
Expand Down Expand Up @@ -802,7 +803,9 @@ afterAll(async () => {
await besuTestLedger.destroy();

pluginSourceGateway.localRepository?.destroy();
pluginSourceGateway.remoteRepository?.destroy();
pluginRecipientGateway.localRepository?.destroy();
pluginRecipientGateway.remoteRepository?.destroy();

await Servers.shutdown(besuServer);
await Servers.shutdown(fabricServer);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -775,6 +775,7 @@ test("client gateway crashes after deleting fabric asset", async () => {

// now we simulate the crash of the client gateway
pluginSourceGateway.localRepository?.destroy();
pluginSourceGateway.remoteRepository?.destroy();
await Servers.shutdown(sourceGatewayServer);

const expressApp = express();
Expand Down

0 comments on commit 0f5d5e9

Please sign in to comment.