Skip to content

Commit

Permalink
Merge pull request #9 from EthereumRemix/patch-release
Browse files Browse the repository at this point in the history
Patch release
  • Loading branch information
ioedeveloper authored Mar 29, 2023
2 parents 680b708 + 1de0b55 commit 6998710
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/sample.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ jobs:
with:
node-version: 14.17.6
- name: Run SUT action with default provider
uses: EthereumRemix/sol-test@v1.1
uses: EthereumRemix/sol-test@v1.2
with:
test-path: 'sample/tests/Ballot_test.sol'
compiler-version: '0.8.15'
- name: Run SUT Action with custom fork
uses: EthereumRemix/sol-test@v1.1
uses: EthereumRemix/sol-test@v1.2
with:
test-path: 'sample/tests/custom/hardFork_test.sol'
compiler-version: '0.8.17'
Expand Down
6 changes: 3 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,20 +101,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'])];
return [4 /*yield*/, cli.exec('yarn', ['global', 'add', 'rlp', '@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', '-g'])];
return [4 /*yield*/, cli.exec('npm', ['install', 'rlp', '@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', '-g'])];
return [4 /*yield*/, cli.exec('npm', ['install', 'rlp', '@remix-project/remix-tests', '-g'])];
case 6:
_a.sent();
_a.label = 7;
Expand Down
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ async function execute () {
const isNPMrepo = fs.existsSync(packageLock)

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

Expand Down

0 comments on commit 6998710

Please sign in to comment.