Skip to content

Commit

Permalink
Merge pull request #753 from haqq-network/dev
Browse files Browse the repository at this point in the history
release
  • Loading branch information
olegshilov authored Mar 27, 2024
2 parents feb5636 + 4e9bfc4 commit 5cc5f60
Show file tree
Hide file tree
Showing 740 changed files with 7,186 additions and 8,270 deletions.
37 changes: 11 additions & 26 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,50 +15,35 @@
"depConstraints": [
{
"sourceTag": "shell",
"onlyDependOnLibsWithTags": [
"shell-lib-*",
"data-access-falconer",
"sentry"
]
"onlyDependOnLibsWithTags": ["shell-lib-*", "data-access"]
},
{
"sourceTag": "shell-lib-*",
"onlyDependOnLibsWithTags": [
"shell-lib-*",
"data-access-falconer"
]
"onlyDependOnLibsWithTags": ["shell-lib-*", "data-access"]
},
{
"sourceTag": "islamic",
"onlyDependOnLibsWithTags": [
"islamic-lib-*",
"data-access-falconer"
]
"onlyDependOnLibsWithTags": ["islamic-lib-*", "data-access"]
},
{
"sourceTag": "islamic-lib-*",
"onlyDependOnLibsWithTags": [
"islamic-lib-*",
"data-access-falconer"
]
"onlyDependOnLibsWithTags": ["islamic-lib-*", "data-access"]
},
{
"sourceTag": "haqq",
"onlyDependOnLibsWithTags": [
"haqq-lib-*",
"data-access-falconer"
]
"onlyDependOnLibsWithTags": ["haqq-lib-*", "data-access"]
},
{
"sourceTag": "haqq-lib-*",
"onlyDependOnLibsWithTags": [
"haqq-lib-*",
"data-access-falconer"
]
"onlyDependOnLibsWithTags": ["haqq-lib-*", "data-access"]
},
{
"sourceTag": "vesting",
"onlyDependOnLibsWithTags": ["shell-lib-*", "sentry"]
"onlyDependOnLibsWithTags": ["shell-lib-*", "data-access"]
},
{
"sourceTag": "data-access",
"onlyDependOnLibsWithTags": ["data-access"]
}
]
}
Expand Down
47 changes: 23 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,27 +39,26 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }}

build:
name: Build
runs-on:
- ubuntu
- self-hosted
if: (github.event_name == 'pull_request' && !github.event.pull_request.draft) || (github.event_name == 'push' && github.ref == 'refs/heads/dev')
needs: test-and-lint
env:
FALCONER_ENDPOINT: ${{ secrets.FALCONER_ENDPOINT }}
TURNSTILE_SITEKEY: ${{ secrets.TURNSTILE_SITEKEY }}
NX_AIRDROP_ENDPOINT: ${{ secrets.NX_AIRDROP_ENDPOINT }}
timeout-minutes: 15
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: yarn
- name: Setup dependencies
run: yarn install --immutable
- name: Build
run: yarn nx run-many --target=build --parallel=3
# build:
# name: Build
# runs-on:
# - ubuntu
# - self-hosted
# if: (github.event_name == 'pull_request' && !github.event.pull_request.draft) || (github.event_name == 'push' && github.ref == 'refs/heads/dev')
# needs: test-and-lint
# env:
# FALCONER_ENDPOINT: ${{ secrets.FALCONER_ENDPOINT }}
# TURNSTILE_SITEKEY: ${{ secrets.TURNSTILE_SITEKEY }}
# timeout-minutes: 15
# steps:
# - name: Checkout code
# uses: actions/checkout@v4
# - name: Setup Node.js
# uses: actions/setup-node@v4
# with:
# node-version-file: .nvmrc
# cache: yarn
# - name: Setup dependencies
# run: yarn install --immutable
# - name: Build
# run: yarn nx run-many --target=build --parallel=3
3 changes: 2 additions & 1 deletion .github/workflows/preview-vercel-haqq-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
runs-on:
- ubuntu
- self-hosted
if: (github.event_name == 'pull_request' && !github.event.pull_request.draft) || (github.event_name == 'push' && github.ref == 'refs/heads/dev')
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_HAQQ_WEBSITE_PROJECT_ID }}
Expand All @@ -33,6 +34,6 @@ jobs:
- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Project Artifacts
run: vercel build ./apps/haqq-website --token=${{ secrets.VERCEL_TOKEN }} --local-config vercel-next.json
run: vercel build --token=${{ secrets.VERCEL_TOKEN }} --local-config vercel-next.json
- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} --local-config vercel-next.json
3 changes: 2 additions & 1 deletion .github/workflows/preview-vercel-islamic-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
runs-on:
- ubuntu
- self-hosted
if: (github.event_name == 'pull_request' && !github.event.pull_request.draft) || (github.event_name == 'push' && github.ref == 'refs/heads/dev')
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_ISLAMIC_WEBSITE_PROJECT_ID }}
Expand All @@ -33,6 +34,6 @@ jobs:
- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Project Artifacts
run: vercel build ./apps/islamic-website --token=${{ secrets.VERCEL_TOKEN }} --local-config vercel-next.json
run: vercel build --token=${{ secrets.VERCEL_TOKEN }} --local-config vercel-next.json
- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} --local-config vercel-next.json
7 changes: 4 additions & 3 deletions .github/workflows/preview-vercel-shell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ jobs:
runs-on:
- ubuntu
- self-hosted
if: (github.event_name == 'pull_request' && !github.event.pull_request.draft) || (github.event_name == 'push' && github.ref == 'refs/heads/dev')
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_SHELL_PROJECT_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_SHELL_PROJECT_ID_NEXT }}
NX_SKIP_NX_CACHE: true
GIT_COMMIT_SHA: ${{ github.sha }}
timeout-minutes: 15
Expand All @@ -33,6 +34,6 @@ jobs:
- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Project Artifacts
run: vercel build ./apps/shell --token=${{ secrets.VERCEL_TOKEN }} --local-config vercel-react.json
run: vercel build --token=${{ secrets.VERCEL_TOKEN }} --local-config vercel-next.json
- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} --local-config vercel-react.json
run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} --local-config vercel-next.json
3 changes: 2 additions & 1 deletion .github/workflows/preview-vercel-storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
runs-on:
- ubuntu
- self-hosted
if: (github.event_name == 'pull_request' && !github.event.pull_request.draft) || (github.event_name == 'push' && github.ref == 'refs/heads/dev')
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_STORYBOOK_PROJECT_ID }}
Expand All @@ -33,6 +34,6 @@ jobs:
- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Project Artifacts
run: vercel build ./libs/storybook--host --token=${{ secrets.VERCEL_TOKEN }} --local-config vercel-react.json
run: vercel build --token=${{ secrets.VERCEL_TOKEN }} --local-config vercel-react.json
- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} --local-config vercel-react.json
3 changes: 2 additions & 1 deletion .github/workflows/preview-vercel-vesting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
runs-on:
- ubuntu
- self-hosted
if: (github.event_name == 'pull_request' && !github.event.pull_request.draft) || (github.event_name == 'push' && github.ref == 'refs/heads/dev')
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_VESTING_PROJECT_ID }}
Expand All @@ -33,6 +34,6 @@ jobs:
- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Project Artifacts
run: vercel build ./apps/vesting --token=${{ secrets.VERCEL_TOKEN }} --local-config vercel-react.json
run: vercel build --token=${{ secrets.VERCEL_TOKEN }} --local-config vercel-react.json
- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} --local-config vercel-react.json
2 changes: 1 addition & 1 deletion .github/workflows/production-vercel-haqq-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ jobs:
- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Project Artifacts
run: vercel build ./apps/haqq-website --prod --token=${{ secrets.VERCEL_TOKEN }} --local-config vercel-next.json
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }} --local-config vercel-next.json
- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }} --local-config vercel-next.json
2 changes: 1 addition & 1 deletion .github/workflows/production-vercel-islamic-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ jobs:
- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Project Artifacts
run: vercel build ./apps/islamic-website --prod --token=${{ secrets.VERCEL_TOKEN }} --local-config vercel-next.json
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }} --local-config vercel-next.json
- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }} --local-config vercel-next.json
6 changes: 3 additions & 3 deletions .github/workflows/production-vercel-shell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- self-hosted
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_SHELL_PROJECT_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_SHELL_PROJECT_ID_NEXT }}
NX_SKIP_NX_CACHE: true
GIT_COMMIT_SHA: ${{ github.sha }}
timeout-minutes: 15
Expand All @@ -30,6 +30,6 @@ jobs:
- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Project Artifacts
run: vercel build ./apps/shell --prod --token=${{ secrets.VERCEL_TOKEN }} --local-config vercel-react.json
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }} --local-config vercel-next.json
- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }} --local-config vercel-react.json
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }} --local-config vercel-next.json
2 changes: 1 addition & 1 deletion .github/workflows/production-vercel-storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ jobs:
- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Project Artifacts
run: vercel build ./libs/storybook--host --prod --token=${{ secrets.VERCEL_TOKEN }} --local-config vercel-react.json
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }} --local-config vercel-react.json
- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }} --local-config vercel-react.json
2 changes: 1 addition & 1 deletion .github/workflows/production-vercel-vesting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ jobs:
- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Project Artifacts
run: vercel build ./apps/vesting --prod --token=${{ secrets.VERCEL_TOKEN }} --local-config vercel-react.json
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }} --local-config vercel-react.json
- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }} --local-config vercel-react.json
Loading

0 comments on commit 5cc5f60

Please sign in to comment.