Skip to content

Commit

Permalink
CI/CD : Adding Snap Unit Test Github Action (#105)
Browse files Browse the repository at this point in the history
Signed-off-by: Ivy Astrix <ivy.astrix@gmail.com>
  • Loading branch information
poi-son-ivy authored Feb 22, 2024
1 parent b87adbc commit 982bd26
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 185 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/run-jest-unit-snap.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Run Hedera Pulse Snap Unit Tests

on: [push]

jobs:
eslint:
name: Run Hedera Pulse Snap Unit Tests
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
name: Check out source code

- uses: actions/setup-node@v2
name: Set up Node.js
with:
node-version: '18'
cache: 'yarn'
cache-dependency-path: packages/hedera-wallet-snap/packages/snap

- name: Install Dependencies in Subdirectory
run: yarn install
working-directory: ./packages/hedera-wallet-snap/packages/snap

- name: Run Snap Unit Tests
run: yarn test
working-directory: ./packages/hedera-wallet-snap/packages/snap
2 changes: 1 addition & 1 deletion packages/hedera-wallet-snap/packages/snap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"lint:misc": "prettier '**/*.json' '**/*.md' '!CHANGELOG.md' --ignore-path .gitignore",
"serve": "mm-snap serve",
"start": "mm-snap --version && concurrently \"yarn build && yarn serve\" \"yarn watch\"",
"test": "jest --forceExit",
"test": "jest --forceExit --verbose",
"test:ci": "yarn test --silent",
"watch": "chokidar 'src/' -c 'yarn build'"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "git+https://github.com/hashgraph/hedera-metamask-snaps.git"
},
"source": {
"shasum": "QMtY9QF0nXHx3vKJLK6NAxeLsBoZt2+JxKp6EcX3ZLI=",
"shasum": "5d6XzqGIuaMBr8L8cWZVgT6GMftl95AzrNvYs8kG4+k=",
"location": {
"npm": {
"filePath": "dist/snap.js",
Expand Down

This file was deleted.

0 comments on commit 982bd26

Please sign in to comment.