Skip to content
This repository has been archived by the owner on Feb 7, 2025. It is now read-only.

Commit

Permalink
Merge pull request #51 from 0chain/ashu/ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ashuvssut authored May 8, 2024
2 parents af90702 + 2ceb9c7 commit 4b12995
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 17 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/changeset-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,20 @@ jobs:
- name: Action checkout
uses: actions/checkout@v4

- name: Enable Corepack
run: corepack enable

- name: Setting up Node
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'yarn'

node-version: "lts/*"
cache: "yarn"

- name: Add Git submodule present at example/webapp
run: git submodule update --init --recursive

- name: Installing dependencies
run: cd lib/js-sdk && yarn
run: yarn install

- name: tsc Linting
run: cd lib/js-sdk && yarn lint
Expand Down
17 changes: 5 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,14 @@ jobs:
- name: Setting up Node
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
node-version: "lts/*"
cache: "yarn"

- name: Check for yarn.lock file
run: |
if [ ! -f "yarn.lock" ]; then
echo "yarn.lock file not found."
exit 1
fi
- name: Add Git submodule present at example/webapp
run: git submodule update --init --recursive

- name: Check network connectivity
run: ping -c 5 google.com

- name: Increase verbosity for yarn install
run: yarn install --verbose
- name: Install dependencies
run: yarn install

- name: tsc Linting
run: cd lib/js-sdk && yarn lint
Expand Down
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "example/webapp"]
path = example/webapp
url = git@github.com:0chain/zus-example-website.git
url = https://github.com/0chain/zus-example-website.git

0 comments on commit 4b12995

Please sign in to comment.