Skip to content

Action For Running Typescript and Javascript Solidity Unit Tests

License

Notifications You must be signed in to change notification settings

EthereumRemix/ts-sol-test

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Action For Running JS and TS Unit Tests on Solidity Contracts

contributions welcome

This GitHub action enables you to run JS and TS unit tests on solidity smart contracts as part of your continuous integration and deployment process. To know more about Remix IDE Solidity Unit Testing, visit Remix IDE official documentation, Remix Tests Library.

Example workflow: Sample

name: sol-test-js
on: [push]

jobs:
  run_sample_test_job:
    runs-on: ubuntu-latest
    name: A job to run solidity tests in js
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Run Default Test
        env:
          NODE_OPTIONS: "--max_old_space_size=4096"
        uses: EthereumRemix/[email protected]
        with:
          test-path: 'sample/tests'
          contract-path: 'sample/contracts'
          compiler-version: '0.8.7'
      - name: Run Custom Fork Test
        uses: EthereumRemix/[email protected]
        with:
          test-path: 'sample/tests/custom/hardFork.test.ts'
          contract-path: 'sample/contracts/custom/mainnet_ens.sol'
          compiler-version: '0.8.17'
          hard-fork: 'merge'
          node-url: 'https://rpc.archivenode.io/e50zmkroshle2e2e50zm0044i7ao04ym'

License

MIT © 2018-23 Remix Team

About

Action For Running Typescript and Javascript Solidity Unit Tests

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •