Skip to content

Commit

Permalink
Merge pull request #126 from golemfactory/deploy-sha2-checksum
Browse files Browse the repository at this point in the history
Proxy logs + sha2 checksum
  • Loading branch information
nieznanysprawiciel authored Sep 11, 2024
2 parents 4624b7a + eccb309 commit 1372008
Show file tree
Hide file tree
Showing 4 changed files with 200 additions and 2,086 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/fmt-clippy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Check code integrity (lock, fmt, clippy)

on:
push:
branches: [ "main" ]
tags:
- v*
- pre-rel-*
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
rust_stable: 1.76.0

jobs:
check_format:
name: Check formatting
runs-on: [ ubuntu-latest ]
steps:
- name: Checkout
uses: actions/checkout@v1

- name: Install Rust ${{ env.rust_stable }}
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env.rust_stable }}
components: rustfmt, clippy

- name: Setup cache
uses: Swatinem/rust-cache@v2

- name: Check lockfile
uses: actions-rs/cargo@v1
with:
command: tree
args: --locked
save-if: ${{ github.ref == 'refs/heads/master' }}

- name: Check formatting
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check

- name: Check clippy lints
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-targets --all-features --workspace -- -D warnings
4 changes: 0 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,11 @@ jobs:

steps:
- uses: actions/checkout@v4

- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.rust_stable }}
components: clippy, rustfmt

- uses: Swatinem/rust-cache@v2

- run: cargo tree --locked
- run: cargo fmt --all -- --check
- run: cargo clippy --all-targets --all-features --workspace -- -D warnings
- run: cargo test --all-features --workspace
Loading

0 comments on commit 1372008

Please sign in to comment.