Skip to content

Commit

Permalink
Merge branch 'main' into feat/kyc-flag-api
Browse files Browse the repository at this point in the history
Signed-off-by: Himalayan Dev <[email protected]>
  • Loading branch information
himalayan-dev authored Mar 18, 2024
2 parents df3b63d + 8590a47 commit ba4cb31
Show file tree
Hide file tree
Showing 20 changed files with 490 additions and 246 deletions.
35 changes: 35 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,38 @@
###############################
/packages/hedera-wallet-snap/ @Nana-EC @kpachhai @hashgraph/hedera-smart-contracts @hashgraph/tuum-tech-hedera

#########################
##### Core Files ######
#########################

# NOTE: Must be placed last to ensure enforcement over all other rules

# Protection Rules for Github Configuration Files and Actions Workflows
/.github/ @hashgraph/release-engineering-managers @hashgraph/hedera-smart-contracts-managers

# Top level NPM configuration files
/package.json @hashgraph/release-engineering-managers @hashgraph/hedera-smart-contracts-managers
/package-lock.json @hashgraph/release-engineering-managers @hashgraph/hedera-smart-contracts-managers

# Codacy Tool Configurations
/config/ @hashgraph/release-engineering-managers
.remarkrc @hashgraph/release-engineering-managers
/.prettierrc @hashgraph/hedera-smart-contracts-managers
/.eslintrc.js @hashgraph/release-engineering-managers

# Semantic Release Configuration
.releaserc @hashgraph/release-engineering-managers

# Self-protection for root CODEOWNERS files (this file should not exist and should definitely require approval)
/CODEOWNERS @hashgraph/release-engineering-managers

# Protect the repository root files
/README.md @hashgraph/hedera-smart-contracts-managers
**/LICENSE @hashgraph/hedera-smart-contracts-managers

# CodeCov configuration
**/codecov.yml @hashgraph/release-engineering-managers

# Git Ignore definitions
**/.gitignore @hashgraph/release-engineering-managers @hashgraph/hedera-smart-contracts-managers
**/.gitignore.* @hashgraph/release-engineering-managers @hashgraph/hedera-smart-contracts-managers
50 changes: 50 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
commit-message:
prefix: "chore"
include: "scope"
open-pull-requests-limit: 15

- package-ecosystem: npm
directory: "/"
schedule:
interval: "daily"
commit-message:
prefix: "chore"
include: "scope"
versioning-strategy: increase
open-pull-requests-limit: 5

- package-ecosystem: npm
directory: "/packages/hedera-wallet-snap"
schedule:
interval: "daily"
commit-message:
prefix: "chore"
include: "scope"
versioning-strategy: increase
open-pull-requests-limit: 15

- package-ecosystem: npm
directory: "/packages/hedera-wallet-snap/packages/site"
schedule:
interval: "daily"
commit-message:
prefix: "chore"
include: "scope"
versioning-strategy: increase
open-pull-requests-limit: 15

- package-ecosystem: npm
directory: "/packages/hedera-wallet-snap/packages/snap"
schedule:
interval: "daily"
commit-message:
prefix: "chore"
include: "scope"
versioning-strategy: increase
open-pull-requests-limit: 15
75 changes: 0 additions & 75 deletions .github/hedera-wallet-snap-build-lint-test.yml

This file was deleted.

55 changes: 0 additions & 55 deletions .github/hedera-wallet-snap-create-release-pr.yml

This file was deleted.

54 changes: 0 additions & 54 deletions .github/hedera-wallet-snap-publish-release.yml

This file was deleted.

9 changes: 9 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
## Description

This pull request changes the following:

- TBD

### Related Issues

- Closes #
45 changes: 45 additions & 0 deletions .github/workflows/flow-build-application.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Build Application

on:
workflow_dispatch:
inputs:
enable-unit-tests:
description: "Unit Testing Enabled"
type: boolean
required: false
default: false
push:
branches:
- main

defaults:
run:
shell: bash

jobs:
wallet-snap-lint:
name: Wallet Snap
uses: ./.github/workflows/zxc-lint-snap.yaml
with:
snap-package-dir: hedera-wallet-snap

wallet-snap-test:
name: Wallet Snap
uses: ./.github/workflows/zxc-test-snap.yaml
if: ${{ github.event_name == 'push' || github.event.inputs.enable-unit-tests == 'true' }}
with:
snap-package-dir: hedera-wallet-snap
snap-report-name: "Wallet Snap"

wallet-snap-analyze:
name: Wallet Snap
uses: ./.github/workflows/zxc-analyze-snap.yaml
needs:
- wallet-snap-test
if: ${{ github.event_name == 'push' || github.event.inputs.enable-unit-tests == 'true' }}
with:
snap-package-dir: hedera-wallet-snap
snap-report-name: "Wallet Snap"
secrets:
codecov-token: ${{ secrets.CODECOV_TOKEN }}
codacy-project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
echo "::endgroup::"
- name: Setup JQ
uses: dcarbone/install-jq-action@1090b8bd111c736fbfe29b686e64f4bec7b5caa6 # v2.0.2
uses: dcarbone/install-jq-action@8867ddb4788346d7c22b72ea2e2ffe4d514c7bcb # v2.1.0
with:
version: 1.7

Expand Down Expand Up @@ -133,7 +133,7 @@ jobs:
ref: ${{ github.event.inputs.tag || '' }}

- name: Install PNPM
uses: pnpm/action-setup@d882d12c64e032187b2edb46d3a0d003b7a43598 # v2.4.0
uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3.0.0
with:
version: 8.10.0

Expand Down
38 changes: 38 additions & 0 deletions .github/workflows/flow-pull-request-checks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: PR Checks

on: [pull_request]

defaults:
run:
shell: bash

concurrency:
group: pr-checks-${{ github.workflow }}-${{ github.head_ref || github.ref || github.run_id }}
cancel-in-progress: true

jobs:
wallet-snap-lint:
name: Wallet Snap
uses: ./.github/workflows/zxc-lint-snap.yaml
with:
snap-package-dir: hedera-wallet-snap

wallet-snap-test:
name: Wallet Snap
uses: ./.github/workflows/zxc-test-snap.yaml
with:
snap-package-dir: hedera-wallet-snap
snap-report-name: "Wallet Snap"

wallet-snap-analyze:
name: Wallet Snap
uses: ./.github/workflows/zxc-analyze-snap.yaml
needs:
- wallet-snap-test
if: ${{ github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name && github.actor != 'dependabot[bot]' }}
with:
snap-package-dir: hedera-wallet-snap
snap-report-name: "Wallet Snap"
secrets:
codecov-token: ${{ secrets.CODECOV_TOKEN }}
codacy-project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
Loading

0 comments on commit ba4cb31

Please sign in to comment.