Skip to content

Commit

Permalink
Merge 6c7d933 into e0cd39c
Browse files Browse the repository at this point in the history
  • Loading branch information
ochikov authored Oct 31, 2022
2 parents e0cd39c + 6c7d933 commit 5dfeacd
Show file tree
Hide file tree
Showing 8 changed files with 266 additions and 256 deletions.
205 changes: 103 additions & 102 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,109 +1,110 @@
name: Build

on:
push:
branches:
- main
- develop
- release/*
pull_request:
branches:
- main
- develop
- release/*
push:
branches:
- main
- develop
- release/*
- build
pull_request:
branches:
- main
- develop
- release/*

env:
PNPM_HOME: /home/runner/work/hedera-sdk-js
PNPM_HOME: /home/runner/work/hedera-sdk-js

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: [ '14', '16' ]

steps:
- uses: actions/checkout@v2
with:
submodules: recursive

- name: Install Task
uses: arduino/setup-task@v1
with:
version: 3.7.0

- name: Cache pnpm modules
uses: actions/cache@v2
env:
cache-name: cache-pnpm-modules
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}

- uses: pnpm/[email protected]
with:
version: 7.6.0

- name: Build @hashgraph/sdk
run: task build

test-unit-node:
runs-on: ubuntu-latest
strategy:
matrix:
node: [ '14', '16' ]

steps:
- uses: actions/checkout@v2
with:
submodules: recursive

- name: Install Task
uses: arduino/setup-task@v1
with:
version: 3.7.0

- name: Cache pnpm modules
uses: actions/cache@v2
env:
cache-name: cache-pnpm-modules
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}

- uses: pnpm/[email protected]
with:
version: 7.6.0

- name: Build @hashgraph/sdk
run: task build

- name: Build @hashgraph/cryptography
working-directory: packages/cryptography
run: task build

- name: Uint Test @hashgraph/cryptography
working-directory: packages/cryptography
run: task test:unit

- name: Codecov @hashgraph/cryptography
working-directory: packages/cryptography
run: task test:unit:codecov

- name: Unit Test @hashgraph/sdk
run: task test:unit

- name: Codecov @hashgraph/sdk
run: task test:unit:codecov
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: ["14", "16"]

steps:
- uses: actions/checkout@v2
with:
submodules: recursive

- name: Install Task
uses: arduino/setup-task@v1
with:
version: 3.7.0

- name: Cache pnpm modules
uses: actions/cache@v2
env:
cache-name: cache-pnpm-modules
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}

- uses: pnpm/[email protected]
with:
version: 7.6.0

- name: Build @hashgraph/sdk
run: task build

test-unit-node:
runs-on: ubuntu-latest
strategy:
matrix:
node: ["14", "16"]

steps:
- uses: actions/checkout@v2
with:
submodules: recursive

- name: Install Task
uses: arduino/setup-task@v1
with:
version: 3.7.0

- name: Cache pnpm modules
uses: actions/cache@v2
env:
cache-name: cache-pnpm-modules
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}

- uses: pnpm/[email protected]
with:
version: 7.6.0

- name: Build @hashgraph/sdk
run: task build

- name: Build @hashgraph/cryptography
working-directory: packages/cryptography
run: task build

- name: Uint Test @hashgraph/cryptography
working-directory: packages/cryptography
run: task test:unit

- name: Codecov @hashgraph/cryptography
working-directory: packages/cryptography
run: task test:unit:codecov

- name: Unit Test @hashgraph/sdk
run: task test:unit

- name: Codecov @hashgraph/sdk
run: task test:unit:codecov
Loading

0 comments on commit 5dfeacd

Please sign in to comment.