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

Fix some of the Github workflows #1311

Merged
merged 10 commits into from
Nov 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
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