Skip to content

Commit

Permalink
ci: solidity tests on all PR
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Chataigner <tom.chataigner@yahoo.fr>
  • Loading branch information
tchataigner committed Jun 21, 2024
1 parent f5b9339 commit 06e640b
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 40 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,42 @@ jobs:
run: cargo xclippy -D warnings
working-directory: ${{ github.workspace }}/${{ matrix.package }}

solidity-unit-tests:
runs-on: buildjet-16vcpu-ubuntu-2204
steps:
- uses: actions/checkout@v4
with:
repository: lurk-lab/ci-workflows
- uses: ./.github/actions/ci-env
- name: Setup CI
uses: ./.github/actions/setup
with:
pull_token: ${{ secrets.REPO_TOKEN }}
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly

- name: Check formatting
run: |
forge fmt --check
working-directory: ${{ github.workspace }}/aptos/solidity/contracts/

- name: Run Forge build
run: |
forge --version
forge build
working-directory: ${{ github.workspace }}/aptos/solidity/contracts/

- name: Run Forge tests
run: |
forge test
working-directory: ${{ github.workspace }}/aptos/solidity/contracts/

cycle-count-regression:
runs-on: warp-ubuntu-latest-x64-32x
steps:
Expand Down
40 changes: 0 additions & 40 deletions .github/workflows/solidity.yml

This file was deleted.

0 comments on commit 06e640b

Please sign in to comment.