Skip to content

Commit

Permalink
Toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
gRoussac committed Jan 28, 2025
1 parent 4c86d77 commit a9e74e5
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/nightly-scheduled-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
schedule:
# * is a special character in YAML so you have to quote this string
# runs every day at midnight
- cron: "0 0 * * *"
- cron: '0 0 * * *'

jobs:
nightly-make-test:
Expand All @@ -14,6 +14,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
components: rustfmt, clippy

Expand All @@ -28,9 +29,9 @@ jobs:
if: always()
with:
status: ${{ job.status }}
notification_title: "*{repo}*"
message_format: "{emoji} *{workflow}* *{status_message}* in <{repo_url}|{repo}@{branch}> on <{commit_url}|{commit_sha}>"
footer: "<{run_url}|View Run>"
notification_title: '*{repo}*'
message_format: '{emoji} *{workflow}* *{status_message}* in <{repo_url}|{repo}@{branch}> on <{commit_url}|{commit_sha}>'
footer: '<{run_url}|View Run>'
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/publish-js-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
components: rustfmt, clippy
# Needed for gcc install
Expand Down
18 changes: 9 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,20 @@ test: setup-test
cargo test -p tests --lib

clippy:
cargo clippy --release -p cep18 --bins --target wasm32-unknown-unknown $(CARGO_BUILD_FLAGS) -- -D warnings
cargo clippy --release -p cep18 --lib --target wasm32-unknown-unknown $(CARGO_BUILD_FLAGS) -- -D warnings
cargo clippy --release -p cep18 --lib --target wasm32-unknown-unknown $(CARGO_BUILD_FLAGS) --no-default-features -- -D warnings
cargo clippy -p cep18-test-contract --bins --target wasm32-unknown-unknown $(CARGO_BUILD_FLAGS) -- -D warnings
cargo +$(PINNED_TOOLCHAIN) clippy --release -p cep18 --bins --target wasm32-unknown-unknown $(CARGO_BUILD_FLAGS) -- -D warnings
cargo +$(PINNED_TOOLCHAIN) clippy --release -p cep18 --lib --target wasm32-unknown-unknown $(CARGO_BUILD_FLAGS) -- -D warnings
cargo +$(PINNED_TOOLCHAIN) clippy --release -p cep18 --lib --target wasm32-unknown-unknown $(CARGO_BUILD_FLAGS) --no-default-features -- -D warnings
cargo +$(PINNED_TOOLCHAIN) clippy -p cep18-test-contract --bins --target wasm32-unknown-unknown $(CARGO_BUILD_FLAGS) -- -D warnings
cargo clippy -p tests --all-targets $(CARGO_BUILD_FLAGS) -- -D warnings

format:
cargo fmt -p cep18
cargo fmt -p cep18-test-contract
cargo +$(PINNED_TOOLCHAIN) fmt -p cep18
cargo +$(PINNED_TOOLCHAIN) fmt -p cep18-test-contract
cargo fmt -p tests

check-lint: clippy
cargo fmt -p cep18 -- --check
cargo fmt -p cep18-test-contract -- --check
cargo +$(PINNED_TOOLCHAIN) fmt -p cep18
cargo +$(PINNED_TOOLCHAIN) fmt -p cep18-test-contract
cargo fmt -p tests -- --check

lint: clippy format
Expand All @@ -66,4 +66,4 @@ clean:
cargo-update:
cargo update -p cep18
cargo update -p cep18-test-contract
cargo update -p tests
cargo update -p tests

0 comments on commit a9e74e5

Please sign in to comment.