Skip to content

Commit

Permalink
fix: update to support hero monorepo
Browse files Browse the repository at this point in the history
  • Loading branch information
blakebyrnes committed Sep 16, 2024
1 parent 548c408 commit 9fc427e
Show file tree
Hide file tree
Showing 39 changed files with 3,043 additions and 150,917 deletions.
4 changes: 2 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ hero
website
stream
sql/ast/syntax/compiled
datastore/docpage/src
datastore/docpage
!playgrounds/hero
build
build-dist
build-dist
25 changes: 1 addition & 24 deletions .github/workflows/js-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,31 +57,8 @@ jobs:
run: yarn tsc
working-directory: ../mainchain/client/nodejs

- name: Clone ulixee/shared
run: |
git clone -n https://github.com/ulixee/shared.git
cd shared
(git fetch --depth 1 origin $GITHUB_REF_NAME && git checkout $GITHUB_REF_NAME) || (git fetch --depth 1 origin main && git checkout main)
working-directory: ..

- name: Install ulixee/shared
run: yarn && yarn build
working-directory: ../shared

- name: Clone unblocked
run: |
git clone -n --recurse-submodules https://github.com/ulixee/unblocked.git
cd unblocked
(git fetch --depth 1 origin $GITHUB_REF_NAME && git checkout $GITHUB_REF_NAME) || (git fetch --depth 1 origin main && git checkout main)
git submodule update --init --recursive --depth 1
working-directory: ..

- name: Install unblocked
run: yarn build
working-directory: ../unblocked

- name: Install Hero
run: yarn build
run: yarn build:simple
working-directory: ./hero

- name: Set timeout
Expand Down
60 changes: 2 additions & 58 deletions .github/workflows/lint-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,29 +79,6 @@ jobs:
cp mainchain/localchain/npm/**/*.node mainchain/localchain
working-directory: ..

- name: Clone ulixee/shared
run: |
git clone -n https://github.com/ulixee/shared.git
cd shared
(git fetch --depth 1 origin $GITHUB_REF_NAME && git checkout $GITHUB_REF_NAME) || (git fetch --depth 1 origin main && git checkout main)
working-directory: ..

- name: Install ulixee/shared
run: yarn && yarn build
working-directory: ../shared

- name: Clone unblocked
run: |
git clone -n --recurse-submodules https://github.com/ulixee/unblocked.git
cd unblocked
(git fetch --depth 1 origin $GITHUB_REF_NAME && git checkout $GITHUB_REF_NAME) || (git fetch --depth 1 origin main && git checkout main)
git submodule update --init --recursive --depth 1
working-directory: ..

- name: Install unblocked
run: yarn build
working-directory: ../unblocked

- name: Install mainchain
run: yarn
working-directory: ../mainchain
Expand All @@ -111,13 +88,9 @@ jobs:
working-directory: ../mainchain/client/nodejs

- name: Install Hero
run: yarn build
run: yarn build:simple
working-directory: ./hero

- name: Relink Shared
run: yarn build
working-directory: ../shared

- name: Yarn build
run: yarn --ignore-engines && yarn build --ignore-engines
env:
Expand Down Expand Up @@ -217,31 +190,6 @@ jobs:
cp mainchain/localchain/npm/**/*.node mainchain/localchain
working-directory: ..

- name: Clone ulixee/shared
shell: bash
run: |
git clone -n https://github.com/ulixee/shared.git
cd shared
(git fetch --depth 1 origin $GITHUB_REF_NAME && git checkout $GITHUB_REF_NAME) || (git fetch --depth 1 origin main && git checkout main)
working-directory: ..

- name: Install ulixee/shared
run: yarn && yarn build
working-directory: ../shared

- name: Clone unblocked
shell: bash
run: |
git clone -n --recurse-submodules https://github.com/ulixee/unblocked.git
cd unblocked
(git fetch --depth 1 origin $GITHUB_REF_NAME && git checkout $GITHUB_REF_NAME) || (git fetch --depth 1 origin main && git checkout main)
git submodule update --init --recursive --depth 1
working-directory: ..

- name: Install unblocked
run: yarn build
working-directory: ../unblocked

- name: Install mainchain
run: yarn
working-directory: ../mainchain
Expand All @@ -251,13 +199,9 @@ jobs:
working-directory: ../mainchain/client/nodejs

- name: Install Hero
run: yarn build
run: yarn build:simple
working-directory: ./hero

- name: Relink Shared
run: yarn build
working-directory: ../shared

- name: Yarn build
run: yarn --ignore-engines && yarn build --ignore-engines
env:
Expand Down
5 changes: 1 addition & 4 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx commitlint --edit $1
yarn commitlint --edit $1
5 changes: 1 addition & 4 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
yarn lint-staged
2 changes: 1 addition & 1 deletion .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1 +1 @@
npm test
yarn test
Binary file added .yarn/install-state.gz
Binary file not shown.
Loading

0 comments on commit 9fc427e

Please sign in to comment.