Skip to content

chore: Update the Dockerfile of godwoken-web3 #286

chore: Update the Dockerfile of godwoken-web3

chore: Update the Dockerfile of godwoken-web3 #286

Workflow file for this run

name: Web3 Rust
on:
push:
paths:
- 'web3/**'
pull_request:
paths:
- 'web3/**'
env:
CARGO_TERM_COLOR: always
jobs:
Build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: web3
steps:
- uses: actions/checkout@v4
- name: Install Rust components
run: |
cargo fmt --version || rustup component add rustfmt
cargo clippy --version || rustup component add clippy
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-web3-indexer-${{ hashFiles('Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-web3-indexer
- name: Build
run: cargo build --verbose
- name: Check format
run: cargo fmt -- --check
- name: Cargo clippy check
env:
RUSTFLAGS: -D warnings
run: cargo clippy
- name: Diff
run: git diff --exit-code