Skip to content

Commit

Permalink
Merge pull request #888 from haqq-network/dev
Browse files Browse the repository at this point in the history
release
  • Loading branch information
olegshilov authored Jul 1, 2024
2 parents 68c9a08 + c12156e commit fb0b6d5
Show file tree
Hide file tree
Showing 1,491 changed files with 29,590 additions and 72,256 deletions.
30 changes: 9 additions & 21 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,23 +1,11 @@
NX_FAUCET_SERVICE_ENDPOINT=http://0.0.0.0:1337
NX_FAUCET_RECAPTCHA_SITE_KEY=example_recaptcha_site_key
NX_FAUCET_AUTH0_DOMAIN=example_auth0_domain
NX_FAUCET_AUTH0_CLIENT_ID=example_auth0_client_id

NX_SHELL_SENTRY_DSN=example_sentry_dsn
NX_STAKING_SENTRY_DSN=example_sentry_dsn
NX_GOVERNANCE_SENTRY_DSN=example_sentry_dsn
NX_FAUCET_SENTRY_DSN=example_sentry_dsn
NX_VESTING_SENTRY_DSN=example_sentry_dsn

NX_WALLETCONNECT_PROJECT_ID=example_wallet_connect_project_id

GOOGLE_TAG_ID=example_ga_measurement_id

FALCONER_ENDPOINT=example_falconer_service_endpoint
TURNSTILE_SITEKEY=example_turnstile_sitekey
NX_AIRDROP_ENDPOINT=airdrop.local

INDEXER_ENDPOINT=indexer.local

# SHELL
NEXT_PUBLIC_FAUCET_SERVICE_ENDPOINT=http://0.0.0.0:1337
NEXT_PUBLIC_FAUCET_AUTH0_DOMAIN=example_auth0_domain
NEXT_PUBLIC_FAUCET_AUTH0_CLIENT_ID=example_auth0_client_id
NEXT_PUBLIC_FAUCET_RECAPTCHA_SITE_KEY=example_recaptcha_site_key
NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID=example_wallet_connect_project_id
NEXT_PUBLIC_POSTHOG_KEY=ph_project_api_key
NEXT_PUBLIC_POSTHOG_HOST=ph_instance_address

# Vesting
WALLETCONNECT_PROJECT_ID=example_wallet_connect_project_id
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/.yarn/** linguist-generated
yarn.lock linguist-generated
pnpm-lock.yaml linguist-generated
11 changes: 0 additions & 11 deletions .github/.kodiak.toml

This file was deleted.

6 changes: 2 additions & 4 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
codecov:
branch: dev
require_ci_to_pass: true
notify:
after_n_builds: 2
wait_for_ci: true

coverage:
range: [70, 90]
range: 60..80
round: down
precision: 2
status:
patch: false
project: false

flag_management:
default_rules:
Expand Down
32 changes: 25 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true

permissions:
actions: read
contents: read

env:
HUSKY: 0

jobs:
test-and-lint:
name: Test and Lint
Expand All @@ -23,18 +30,29 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: yarn
cache: pnpm
- name: Setup dependencies
run: yarn install --immutable
- name: Run lint
run: yarn nx run-many --target=lint --parallel=3
- name: Run tests
run: yarn nx run-many --target=test --parallel=3 --ci --coverage
run: |
pnpm install --frozen-lockfile
pnpm cypress install --force
- uses: nrwl/nx-set-shas@v4
# - name: Run lint for affected projects
# run: pnpm exec nx affected --target lint
# - name: Run tests for affected projects
# run: pnpm exec nx affected --target test --ci --coverage
# - name: Run build for affected projects
# run: pnpm exec nx affected --target build
- name: Run lint test and build
run: pnpm exec nx run-many --target lint test
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
6 changes: 3 additions & 3 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
queries: security-and-quality
languages: ${{ matrix.language }}
- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v3
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
39 changes: 0 additions & 39 deletions .github/workflows/preview-vercel-haqq-website.yml

This file was deleted.

39 changes: 0 additions & 39 deletions .github/workflows/preview-vercel-islamic-website.yml

This file was deleted.

15 changes: 10 additions & 5 deletions .github/workflows/preview-vercel-shell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,25 @@ jobs:
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_SHELL_PROJECT_ID_NEXT }}
NX_SKIP_NX_CACHE: true
GIT_COMMIT_SHA: ${{ github.sha }}
HUSKY: 0
timeout-minutes: 15
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: yarn
cache: pnpm
- name: Setup dependencies
run: yarn install --immutable
run: pnpm install --frozen-lockfile
- name: Pull Vercel Environment Information
run: yarn vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
run: pnpm exec vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Project Artifacts
run: yarn vercel build --token=${{ secrets.VERCEL_TOKEN }}
run: pnpm exec vercel build --token=${{ secrets.VERCEL_TOKEN }}
- name: Deploy Project Artifacts to Vercel
run: yarn vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }}
run: pnpm exec vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }}
15 changes: 10 additions & 5 deletions .github/workflows/preview-vercel-storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,25 @@ jobs:
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_STORYBOOK_PROJECT_ID }}
NX_SKIP_NX_CACHE: true
GIT_COMMIT_SHA: ${{ github.sha }}
HUSKY: 0
timeout-minutes: 15
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: yarn
cache: pnpm
- name: Setup dependencies
run: yarn install --immutable
run: pnpm install --frozen-lockfile
- name: Pull Vercel Environment Information
run: yarn vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
run: pnpm exec vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Project Artifacts
run: yarn vercel build --token=${{ secrets.VERCEL_TOKEN }} --local-config vercel-react.json
run: pnpm exec vercel build --token=${{ secrets.VERCEL_TOKEN }} --local-config vercel-react.json
- name: Deploy Project Artifacts to Vercel
run: yarn vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} --local-config vercel-react.json
run: pnpm exec vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} --local-config vercel-react.json
15 changes: 10 additions & 5 deletions .github/workflows/preview-vercel-vesting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,25 @@ jobs:
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_VESTING_PROJECT_ID }}
NX_SKIP_NX_CACHE: true
GIT_COMMIT_SHA: ${{ github.sha }}
HUSKY: 0
timeout-minutes: 15
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: yarn
cache: pnpm
- name: Setup dependencies
run: yarn install --immutable
run: pnpm install --frozen-lockfile
- name: Pull Vercel Environment Information
run: yarn vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
run: pnpm exec vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Project Artifacts
run: yarn vercel build --token=${{ secrets.VERCEL_TOKEN }} --local-config vercel-react.json
run: pnpm exec vercel build --token=${{ secrets.VERCEL_TOKEN }} --local-config vercel-react.json
- name: Deploy Project Artifacts to Vercel
run: yarn vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} --local-config vercel-react.json
run: pnpm exec vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }} --local-config vercel-react.json
35 changes: 0 additions & 35 deletions .github/workflows/production-vercel-haqq-website.yml

This file was deleted.

35 changes: 0 additions & 35 deletions .github/workflows/production-vercel-islamic-website.yml

This file was deleted.

Loading

0 comments on commit fb0b6d5

Please sign in to comment.