Skip to content

Commit

Permalink
use single workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
eyusufatik committed Mar 13, 2024
1 parent 0a3a3be commit a571b8c
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 55 deletions.
33 changes: 32 additions & 1 deletion .github/workflows/rust.yml → .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Rust
name: Checks

# On Rust, GitHub Actions, and caching
# ===========
Expand Down Expand Up @@ -50,6 +50,8 @@ on:
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: -D warnings
FOUNDRY_PROFILE: ci


# Automatically cancels a job if a new commit if pushed to the same PR, branch, or tag.
# Source: <https://stackoverflow.com/a/72408109/5148606>
Expand Down Expand Up @@ -170,3 +172,32 @@ jobs:
run: rustup show
- name: Run nextest
run: SKIP_GUEST_BUILD=1 make test

system-contracts:
strategy:
fail-fast: true

name: Foundry project
runs-on: ubicloud-standard-2
steps:
- uses: actions/checkout@v4
with:
submodules: recursive

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

- name: Run Forge build
run: |
cd module-system/module-implementations/sov-evm/src/evm/system_contracts
forge --version
forge build --sizes
id: build

- name: Run Forge tests
run: |
cd module-system/module-implementations/sov-evm/src/evm/system_contracts
forge test -vvv
id: test
54 changes: 0 additions & 54 deletions .github/workflows/foundry.yml

This file was deleted.

0 comments on commit a571b8c

Please sign in to comment.