This repository was archived by the owner on Jun 30, 2025. It is now read-only.
docs: update readme so example npx run finds files (#61) #232
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Tests | |
| on: push | |
| permissions: read-all | |
| env: | |
| SOL_AST_COMPILER_CACHE: ${{ github.workspace }}/.compiler_cache | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [18.x, 20.x] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Install Solc AST binary | |
| run: yarn global add solc-typed-ast | |
| - name: Install dependencies | |
| run: yarn install | |
| - name: Pre-download compilers from historical builds archive | |
| run: | | |
| sol-ast-compile --download-compilers native wasm | |
| find $SOL_AST_COMPILER_CACHE -name 'list.json' -delete | |
| find $SOL_AST_COMPILER_CACHE -name '*v0.5.17*' -delete | |
| - name: Run tests | |
| run: yarn test |