Add CI #3
Workflow file for this run
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| lint: | |
| name: lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| with: | |
| ref: ${{ github.event.pull_request.head.ref }} | |
| repository: ${{github.event.pull_request.head.repo.full_name}} | |
| - uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cargo/registry | |
| ~/.cargo/git | |
| target | |
| key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
| - uses: actions-rs/toolchain@v1 | |
| with: | |
| toolchain: nightly-2024-09-05 | |
| components: rustfmt, clippy | |
| - uses: actions-rs/cargo@v1 | |
| name: format check | |
| with: | |
| command: fmt | |
| args: --all -- --check | |
| - uses: actions-rs/cargo@v1 | |
| name: clippy check | |
| with: | |
| command: clippy | |
| args: -- -D warnings | |
| test: | |
| name: test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| with: | |
| ref: ${{ github.event.pull_request.head.ref }} | |
| repository: ${{github.event.pull_request.head.repo.full_name}} | |
| - uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cargo/registry | |
| ~/.cargo/git | |
| target | |
| key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
| - uses: actions-rs/toolchain@v1 | |
| with: | |
| toolchain: nightly-2024-09-05 | |
| - uses: extractions/setup-just@v2 | |
| with: | |
| just-version: 1.40.0 | |
| - name: install kurtosis | |
| run: | | |
| sudo apt-get install jq | |
| echo "deb [trusted=yes] https://apt.fury.io/kurtosis-tech/ /" | sudo tee /etc/apt/sources.list.d/kurtosis.list | |
| sudo apt update | |
| sudo apt remove kurtosis-cli | |
| sudo apt install kurtosis-cli=1.4.3 -V | |
| - name: start optimism | |
| run: | | |
| make chain | |
| make devnet-up | |
| make set-port | |
| make status |