Skip to content

Define Rust version for deny check #7

Define Rust version for deny check

Define Rust version for deny check #7

Workflow file for this run

name: ci
on:
push:
branches: [main]
pull_request_target:
branches: [main]
env:
CARGO_TERM_COLOR: always
jobs:
test:
if: github.repository == 'cakevm/cowprotocol-client-rs'
name: make test
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha || github.ref }}
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- run: make test
fmt:
if: github.repository == 'cakevm/cowprotocol-client-rs'
name: make fmt-check
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha || github.ref }}
- uses: dtolnay/rust-toolchain@stable
- run: make fmt-check
taplo:
if: github.repository == 'cakevm/cowprotocol-client-rs'
name: make taplo-check
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha || github.ref }}
- uses: dtolnay/rust-toolchain@stable
- name: Install taplo
env:
version: "0.9.3"
run: |
curl -Ls "https://github.com/tamasfe/taplo/releases/download/${{ env.version }}/taplo-full-linux-x86_64.gz" | \
gzip -d > taplo && \
chmod +x taplo && \
sudo mv taplo /usr/local/bin/taplo
- run: make taplo-check
clippy:
if: github.repository == 'cakevm/cowprotocol-client-rs'
name: make clippy
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha || github.ref }}
- uses: dtolnay/rust-toolchain@clippy
with:
toolchain: "1.84"
- uses: Swatinem/rust-cache@v2
- run: cargo clippy --all-targets --all-features -- -D warnings
deny:
if: github.repository == 'cakevm/cowprotocol-client-rs'
name: cargo deny check
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha || github.ref }}
- uses: EmbarkStudios/cargo-deny-action@v1
with:
rust-version: "1.84.0"
log-level: warn
command: check
arguments: --all-features