Skip to content

Commit

Permalink
fix: tests action (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
gas1cent authored Jan 9, 2024
1 parent da2b9d6 commit 2eea664
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
name: Node.js CI
name: Tests

on: push

permissions: write-all
permissions: read-all

env:
SOL_AST_COMPILER_CACHE: ${{ github.workspace }}/.compiler_cache

jobs:
build:
Expand All @@ -20,9 +23,17 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- run: yarn install
- name: Install Solc AST binary
run: yarn global add solc-typed-ast

- name: Install dependencies
run: yarn install

- run: yarn test
env:
SOL_AST_COMPILER_CACHE: /home/runner/work/_temp/.compiler_cache
- 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

0 comments on commit 2eea664

Please sign in to comment.