name: stylus-foundry-test

on:
  pull_request:
    paths:
      - target_chains/ethereum/sdk/stylus/**
  push:
    branches:
      - main
env:
  FOUNDRY_PROFILE: ci
jobs:
  check:
    name: Foundry project
    runs-on: ubuntu-latest
    defaults:
      run:
        working-directory: target_chains/ethereum/sdk/stylus
    steps:
      - name: Checkout repository
        uses: actions/checkout@v4
        with:
          submodules: recursive
      - name: Install Foundry
        uses: foundry-rs/foundry-toolchain@v1
        with:
          version: nightly
      - name: Show Forge version
        run: forge --version
