-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: setup for modern yarn and pipelines to check building phase
- Loading branch information
Showing
12 changed files
with
9,915 additions
and
1,538 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: "Lint and build React" | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
paths: | ||
- 'packages/react/**' | ||
- '!packages/widget/**' | ||
- '!packages/sdk-manager/**' | ||
- '!packages/wallet-manager/**' | ||
|
||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
node: [18] | ||
fail-fast: true | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
cache: 'yarn' # cache node modules | ||
node-version: ${{ matrix.node }} | ||
- run: corepack enable | ||
- run: yarn set version stable | ||
- run: yarn install --immutable # install dependencies | ||
- run: yarn run lint:react-widget # lint code | ||
- run: yarn run build:all # build react |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: "Lint and build SDK Manager" | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
paths: | ||
- 'packages/sdk-manager/**' | ||
- '!packages/widget/**' | ||
- '!packages/wallet-manager/**' | ||
- '!packages/react/**' | ||
|
||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
node: [18] | ||
fail-fast: true | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
cache: 'yarn' # cache node modules | ||
node-version: ${{ matrix.node }} | ||
- run: corepack enable | ||
- run: yarn set version stable | ||
- run: yarn | ||
- run: yarn run lint:sdk-manager # lint code | ||
- run: yarn run build:wallet-manager # build wallet-manager | ||
- run: yarn run build:sdk-manager # build widget |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: "Lint and build Wallet Manager" | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
paths: | ||
- 'packages/wallet-manager/**' | ||
- '!packages/sdk-manager/**' | ||
- '!packages/widget/**' | ||
- '!packages/react/**' | ||
|
||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
node: [18] | ||
fail-fast: true | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
cache: 'yarn' # cache node modules | ||
node-version: ${{ matrix.node }} | ||
- run: corepack enable | ||
- run: yarn set version stable | ||
- run: yarn | ||
- run: yarn run lint:wallet-manager # lint code | ||
- run: yarn run build:wallet-manager # build widget |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: "Lint and build Widget" | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
paths: | ||
- 'packages/widget/**' | ||
- '!packages/sdk-manager/**' | ||
- '!packages/wallet-manager/**' | ||
- '!packages/react/**' | ||
|
||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
node: [18] | ||
fail-fast: true | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
cache: 'yarn' # cache node modules | ||
node-version: ${{ matrix.node }} | ||
- run: corepack enable | ||
- run: yarn set version stable | ||
- run: yarn install --immutable | ||
- run: yarn run lint:widget # lint code | ||
- run: yarn run build:all # build widget |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
nodeLinker: node-modules | ||
|
||
yarnPath: .yarn/releases/yarn-3.6.3.cjs | ||
|
||
compressionLevel: 0 | ||
|
||
enableGlobalCache: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,5 +26,6 @@ | |
"eslint-plugin-import": "^2.28.1", | ||
"prettier": "^3.0.3", | ||
"typescript": "^5.2.2" | ||
} | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.