Skip to content

Commit

Permalink
Update readme.md and remix-tests version
Browse files Browse the repository at this point in the history
  • Loading branch information
ioedeveloper committed Aug 31, 2022
1 parent e0e4514 commit 71d201e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/sample.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
with:
node-version: 14.17.6
- name: Run SUT Action
uses: EthereumRemix/sut-action@v1-dev
uses: EthereumRemix/sol-test@v1-alpha
with:
test-path: 'sample/tests'
compiler-version: '0.8.15'
6 changes: 3 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,20 +82,20 @@ function execute() {
packageLock = path.join(workingDirectory, 'package-lock.json');
isNPMrepo = fs.existsSync(packageLock);
if (!isYarnRepo) return [3 /*break*/, 2];
return [4 /*yield*/, cli.exec('yarn', ['global', 'add', '@remix-project/remix-tests@0.2.16-alpha.0'])];
return [4 /*yield*/, cli.exec('yarn', ['global', 'add', '@remix-project/remix-tests'])];
case 1:
_a.sent();
return [3 /*break*/, 7];
case 2:
if (!isNPMrepo) return [3 /*break*/, 4];
return [4 /*yield*/, cli.exec('npm', ['install', '@remix-project/remix-tests@0.2.16-alpha.0', '-g'])];
return [4 /*yield*/, cli.exec('npm', ['install', '@remix-project/remix-tests', '-g'])];
case 3:
_a.sent();
return [3 /*break*/, 7];
case 4: return [4 /*yield*/, cli.exec('npm', ['init', '-y'])];
case 5:
_a.sent();
return [4 /*yield*/, cli.exec('npm', ['install', '@remix-project/remix-tests@0.2.16-alpha.0', '-g'])];
return [4 /*yield*/, cli.exec('npm', ['install', '@remix-project/remix-tests', '-g'])];
case 6:
_a.sent();
_a.label = 7;
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "sut-action",
"name": "sol-test",
"version": "1.0.0",
"description": "Solidity Unit Tests Action enables you to run unit tests for solidity contracts.",
"main": "dist/index.js",
Expand All @@ -9,15 +9,15 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/EthereumRemix/sut-action.git"
"url": "git+https://github.com/EthereumRemix/sol-test.git"
},
"keywords": [],
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/EthereumRemix/sut-action/issues"
"url": "https://github.com/EthereumRemix/sol-test/issues"
},
"homepage": "https://github.com/EthereumRemix/sut-action#readme",
"homepage": "https://github.com/EthereumRemix/sol-test#readme",
"dependencies": {
"@actions/core": "^1.9.0",
"@actions/exec": "^1.1.1"
Expand Down
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ async function execute () {
const isNPMrepo = fs.existsSync(packageLock)

if (isYarnRepo) {
await cli.exec('yarn', ['global', 'add', '@remix-project/remix-tests@0.2.16-alpha.0'])
await cli.exec('yarn', ['global', 'add', '@remix-project/remix-tests'])
} else if (isNPMrepo) {
await cli.exec('npm', ['install', '@remix-project/remix-tests@0.2.16-alpha.0', '-g'])
await cli.exec('npm', ['install', '@remix-project/remix-tests', '-g'])
} else {
await cli.exec('npm', ['init', '-y'])
await cli.exec('npm', ['install', '@remix-project/remix-tests@0.2.16-alpha.0', '-g'])
await cli.exec('npm', ['install', '@remix-project/remix-tests', '-g'])
}
})

Expand Down

0 comments on commit 71d201e

Please sign in to comment.