diff --git a/.github/workflows/action_tests.yaml b/.github/workflows/action_tests.yaml new file mode 100644 index 0000000000..f0bbfc40e4 --- /dev/null +++ b/.github/workflows/action_tests.yaml @@ -0,0 +1,37 @@ +name: Action Tests +on: + push: + branches: [main] + merge_group: + pull_request: +env: + CARGO_TERM_COLOR: always +jobs: + action-tests: + name: FPP actions + runs-on: ubuntu-latest + timeout-minutes: 60 + steps: + - name: Checkout sources + uses: actions/checkout@v4 + - name: Clone monorepo + run: | + git clone https://github.com/ethereum-optimism/monorepo + - name: Install just + uses: taiki-e/install-action@just + - name: Install Rust stable toolchain + uses: dtolnay/rust-toolchain@stable + - uses: Swatinem/rust-cache@v2 + with: + cache-on-failure: true + - name: Setup Go toolchain + uses: actions/setup-go@v5 + with: + go-version: "1.21.6" + cache-dependency-path: | + monorepo/go.sum + - name: Install Foundry + uses: foundry-rs/foundry-toolchain@v1 + - name: Run Actions Tests + run: | + just action-tests diff --git a/justfile b/justfile index 5e8793b4cb..dafa0c22ef 100644 --- a/justfile +++ b/justfile @@ -30,7 +30,9 @@ action-tests test_name='Test_ProgramAction': if [ ! -d "monorepo" ]; then echo "Monorepo not found. Cloning..." git clone https://github.com/ethereum-optimism/monorepo + fi + if [ ! -d "monorepo/.devnet" ]; then echo "Building devnet allocs for the monorepo" (cd monorepo && make devnet-allocs) fi @@ -44,7 +46,7 @@ action-tests test_name='Test_ProgramAction': export KONA_CLIENT_PATH="{{justfile_directory()}}/target/release-client-lto/kona" cd monorepo/op-e2e/actions/proofs && \ - gotestsum --format=testname -- -run "{{test_name}}" -v ./... + go test -run "{{test_name}}" -v ./... # Clean the action tests directory clean-actions: