fix(ci): move hive setup to its own job so we only do it once (#1541) #182
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: L2 Contracts | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["**"] | |
paths: | |
- "crates/l2/contracts/**" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
# "Test" is a required check, don't change the name | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Rust toolchain install | |
uses: dtolnay/rust-toolchain@stable | |
- name: Install solc | |
uses: pontem-network/get-solc@master | |
- name: Caching | |
uses: Swatinem/rust-cache@v2 | |
- name: Run test of deployer.rs | |
run: | | |
cd crates/l2/contracts | |
cargo test |