Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI Testing in debug #1606

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/sanity-checks.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
on:
# push:
# branches: [main, 'release-v**']
push:
branches: ['ci-rewrite-n-cache']
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be changed back, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it there was there just to trigger the CI in this PR

pull_request:
paths:
- 'src/'
Expand Down Expand Up @@ -42,12 +42,12 @@ jobs:
# # make Cargo.toml
# echo "Generate code coverage for ${{ matrix.target }}"
# cargo +nightly tarpaulin --verbose --no-fail-fast --workspace --timeout 300 --out Xml
# fi
# fi
- name: Runing cargo ${{ matrix.target }}
run: ./ci/run-check.sh
env:
TARGET: ${{ matrix.target }}
RUSTC_WRAPPER: "sccache"
RUSTC_WRAPPER: "sccache"

# UPLOAD REPORTS (requires cargo 1.70.0)
# - name: Upload codecov report
Expand All @@ -58,7 +58,7 @@ jobs:
# # flags: unittests # optional
# # name: codecov-umbrella # optional
# # fail_ci_if_error: true # optional (default = false)
# verbose: true # optional (default = false)
# verbose: true # optional (default = false)

benchmark-check:
name: bench-check-${{ matrix.runtime }}
Expand Down
6 changes: 3 additions & 3 deletions ci/run-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ cargo --version

case $TARGET in
cargo-build)
cargo build --release "$@"
cargo build "$@"
;;

test-general)
cargo test --workspace --release --features runtime-benchmarks,try-runtime --exclude runtime-integration-tests
cargo test --workspace --features runtime-benchmarks,try-runtime --exclude runtime-integration-tests
;;

test-integration)
cargo test --release --package runtime-integration-tests --features fast-runtime
cargo test --package runtime-integration-tests --features fast-runtime
;;

lint-fmt)
Expand Down
4 changes: 2 additions & 2 deletions docs/DEVELOPING.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ and another one to verify how it works in a more real environment as a parachain
The following command will run the unit and integration tests:

```bash
cargo +nightly test --workspace --release --features runtime-benchmarks,try-runtime
cargo test --workspace --features runtime-benchmarks,try-runtime
```

### Environment tests
Expand Down Expand Up @@ -84,7 +84,7 @@ You can play with it from the parachain client, make transfers, inspect events,
## Linting

### Source code
Lint the source code with `cargo +nightly fmt`. This excludes certain paths (defined in `rustfmt.toml`) that we want to stay as close as possible to `paritytech/substrate` to simplify upgrading to new releases.
Lint the source code with `cargo fmt`. This excludes certain paths (defined in `rustfmt.toml`) that we want to stay as close as possible to `paritytech/substrate` to simplify upgrading to new releases.

### Cargo.toml files
1. Install [taplo](https://github.com/tamasfe/taplo) with `cargo install taplo-cli`.
Expand Down
Loading