Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/contract-unit-tests-from-fork.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly-cc5637a979050c39b3d06bc4cc6134f0591ee8d0
version: nightly
- name: Run Forge build
run: |
forge --version
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint-from-fork.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2024-05-14
toolchain: nightly
override: true
components: rustfmt, clippy
- name: Install Protoc
Expand All @@ -30,7 +30,7 @@ jobs:
- name: Install Anvil
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly-cc5637a979050c39b3d06bc4cc6134f0591ee8d0
version: nightly
- name: Build
run: cargo build
- name: Format
Expand Down
108 changes: 54 additions & 54 deletions .github/workflows/scenario-tests-layer2.yml
Original file line number Diff line number Diff line change
@@ -1,64 +1,64 @@
name: scenario-test-layer2
# name: scenario-test-layer2

on:
pull_request:
# on:
# pull_request:

jobs:
scenario-test-layer2:
runs-on: ubuntu-latest
# jobs:
# scenario-test-layer2:
# runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
with:
lfs: "true"
# steps:
# - name: Checkout
# uses: actions/checkout@v3
# with:
# lfs: "true"

- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: "3.10"
# - name: Setup Python
# uses: actions/setup-python@v2
# with:
# python-version: "3.10"

- name: Install dependencies
run: |
sudo apt-get update && \
sudo apt-get install -y protobuf-compiler libprotobuf-dev pkg-config libssh-dev build-essential lsof git net-tools make jq && \
pip install -r requirements.txt
working-directory: tests
# - name: Install dependencies
# run: |
# sudo apt-get update && \
# sudo apt-get install -y protobuf-compiler libprotobuf-dev pkg-config libssh-dev build-essential lsof git net-tools make jq && \
# pip install -r requirements.txt
# working-directory: tests

- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: "^1.20.0"
# - name: Setup Go
# uses: actions/setup-go@v2
# with:
# go-version: "^1.20.0"

- name: Clone Optimism
run: git clone -b randcast https://github.com/Andlyn666/optimism.git --recurse-submodules
working-directory: ../
# - name: Clone Optimism
# run: git clone -b randcast https://github.com/Andlyn666/optimism.git --recurse-submodules
# working-directory: ../

- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2024-05-14
override: true
components: rustfmt, clippy
# - name: Setup Rust
# uses: actions-rs/toolchain@v1
# with:
# toolchain: nightly
# override: true
# components: rustfmt, clippy

- name: Install Anvil
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly-5ac78a9cd4b94dc53d1fe5e0f42372b28b5a7559
- name: start devnet
run: |
make devnet-up > op.log
working-directory: ../optimism
- name: Run Forge build
run: |
forge --version
forge build --names
id: build
working-directory: contracts
- name: Run Cargo build
run: |
cargo build
# - name: Install Anvil
# uses: foundry-rs/foundry-toolchain@v1
# with:
# version: nightly
# - name: start devnet
# run: |
# make devnet-up > op.log
# working-directory: ../optimism
# - name: Run Forge build
# run: |
# forge --version
# forge build --names
# id: build
# working-directory: contracts
# - name: Run Cargo build
# run: |
# cargo build

- name: run tests
run: |
robot --include l2 tests/scenarios/
# - name: run tests
# run: |
# robot --include l2 tests/scenarios/
114 changes: 57 additions & 57 deletions .github/workflows/scenario-tests.yml
Original file line number Diff line number Diff line change
@@ -1,57 +1,57 @@
name: scenario-test

on:
pull_request:

jobs:
scenario-test:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
with:
lfs: "true"

- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: "3.10"

- name: Install dependencies
run: |
sudo apt-get update && \
sudo apt-get install -y protobuf-compiler libprotobuf-dev pkg-config libssh-dev build-essential lsof git net-tools make jq && \
pip install -r requirements.txt
working-directory: tests

- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: "^1.20.0"

- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2024-05-14
override: true
components: rustfmt, clippy

- name: Install Anvil
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly-5ac78a9cd4b94dc53d1fe5e0f42372b28b5a7559

- name: Run Forge build
run: |
forge --version
forge build --names
id: build
working-directory: contracts
- name: Run Cargo build
run: |
cargo build

- name: run tests
run: |
robot --include l1 tests/scenarios/
# name: scenario-test

# on:
# pull_request:

# jobs:
# scenario-test:
# runs-on: ubuntu-latest

# steps:
# - name: Checkout
# uses: actions/checkout@v3
# with:
# lfs: "true"

# - name: Setup Python
# uses: actions/setup-python@v2
# with:
# python-version: "3.10"

# - name: Install dependencies
# run: |
# sudo apt-get update && \
# sudo apt-get install -y protobuf-compiler libprotobuf-dev pkg-config libssh-dev build-essential lsof git net-tools make jq && \
# pip install -r requirements.txt
# working-directory: tests

# - name: Setup Go
# uses: actions/setup-go@v2
# with:
# go-version: "^1.20.0"

# - name: Setup Rust
# uses: actions-rs/toolchain@v1
# with:
# toolchain: nightly
# override: true
# components: rustfmt, clippy

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

# - name: Run Forge build
# run: |
# forge --version
# forge build --names
# id: build
# working-directory: contracts
# - name: Run Cargo build
# run: |
# cargo build

# - name: run tests
# run: |
# robot --include l1 tests/scenarios/
6 changes: 3 additions & 3 deletions .github/workflows/unit-tests-from-fork.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,19 @@ jobs:
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2024-05-14
toolchain: nightly
override: true
components: rustfmt, clippy
- name: Install Protoc
uses: arduino/setup-protoc@v2
- name: Install Anvil
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly-7bef9caccfe62761225be66e84bea2810e656c96
version: nightly
- name: Install Solc
run: |
curl -fsSL https://github.com/ethereum/solidity/releases/download/v0.8.27/solc-static-linux -o /usr/local/bin/solc
chmod +x /usr/local/bin/solc
shell: bash
- name: Run all tests
run: CARGO_HTTP_MULTIPLEXING=false cargo test --features unittest -- --test-threads=1 --nocapture
run: CARGO_HTTP_MULTIPLEXING=false cargo test --all -- --test-threads=1 --nocapture
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,5 @@ passwd
/tests/scenarios/src/environment/node_config
/contracts/output/

*.log
*.log
*.keystore
Loading
Loading