Skip to content

Latest commit

 

History

History
39 lines (34 loc) · 1.52 KB

README.md

File metadata and controls

39 lines (34 loc) · 1.52 KB

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