From 71d201e6a4e5329be23d65f84751818e0bdf883a Mon Sep 17 00:00:00 2001 From: David Disu Date: Wed, 31 Aug 2022 10:26:09 +0100 Subject: [PATCH] Update readme.md and remix-tests version --- .github/workflows/sample.yml | 2 +- dist/index.js | 6 +++--- package.json | 8 ++++---- src/index.ts | 6 +++--- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/sample.yml b/.github/workflows/sample.yml index 9eef8863..993aa44e 100644 --- a/.github/workflows/sample.yml +++ b/.github/workflows/sample.yml @@ -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' \ No newline at end of file diff --git a/dist/index.js b/dist/index.js index 1b50c03e..1fc8efdb 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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; diff --git a/package.json b/package.json index c6b31a5a..d5c16d34 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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" diff --git a/src/index.ts b/src/index.ts index 63ae6b56..d3db8b89 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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']) } })