-
-
Notifications
You must be signed in to change notification settings - Fork 80
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
Check that the core-graphics crate does not trigger false-positives. #198
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,8 @@ jobs: | |
needs: | ||
- lint | ||
- rust-tests | ||
- run-on-crate | ||
- run-on-rust-libp2p | ||
- run-on-core-graphics | ||
steps: | ||
- run: exit 0 | ||
|
||
|
@@ -104,9 +105,13 @@ jobs: | |
- name: test | ||
run: cargo test | ||
|
||
# Run cargo-semver-checks on a crate with no semver violations, | ||
# to make sure there are no false-positives. | ||
run-on-crate: | ||
run-on-rust-libp2p: | ||
# Run cargo-semver-checks on a crate with no semver violations, | ||
# to make sure there are no false-positives. | ||
# | ||
# cargo-semver-checks previously reported a false-positive here, | ||
# since an enum variant in the crate was included by a feature: | ||
# /~https://github.com/obi1kenobi/cargo-semver-check/issues/147 | ||
name: Run cargo-semver-checks on rust-libp2p 0.47.0 | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
@@ -115,8 +120,6 @@ jobs: | |
with: | ||
persist-credentials: false | ||
|
||
# In this particular version, a feature adds an enum variant. | ||
# Reference: /~https://github.com/obi1kenobi/cargo-semver-check/issues/147 | ||
- name: Checkout rust-libp2p | ||
uses: actions/checkout@v3 | ||
with: | ||
|
@@ -129,7 +132,6 @@ jobs: | |
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
components: rustfmt, clippy | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We didn't actually use rustfmt or clippy here, so we shouldn't install them. |
||
profile: minimal | ||
override: true | ||
|
||
|
@@ -140,11 +142,45 @@ jobs: | |
- name: Run semver-checks | ||
run: cargo run semver-checks check-release --manifest-path="crate/core/Cargo.toml" | ||
|
||
# Test passing package name explicitly | ||
# Test passing package name explicitly. | ||
# It was previously possible to make the command above work while the one here failed. | ||
# Reference: /~https://github.com/obi1kenobi/cargo-semver-checks/issues/174 | ||
- name: Run semver-checks (alternative command) | ||
run: cargo run semver-checks check-release --manifest-path="crate/core/Cargo.toml" --package="libp2p-core" | ||
|
||
run-on-core-graphics: | ||
# Run cargo-semver-checks on a crate with no semver violations, | ||
# to make sure there are no false-positives. | ||
# | ||
# cargo-semver-checks previously reported a false-positive here, | ||
# due to multiple methods by the same name being defined on the same type. | ||
# /~https://github.com/obi1kenobi/cargo-semver-checks/issues/193 | ||
name: Run cargo-semver-checks on core-graphics | ||
runs-on: macos-latest | ||
steps: | ||
- name: Checkout cargo-semver-checks | ||
uses: actions/checkout@v3 | ||
with: | ||
persist-credentials: false | ||
|
||
- name: Checkout rust-libp2p | ||
uses: actions/checkout@v3 | ||
with: | ||
persist-credentials: false | ||
repository: 'servo/core-foundation-rs' | ||
ref: '786895643140fa0ee4f913d7b4aeb0c4626b2085' | ||
path: 'crate' | ||
|
||
- name: Install rust | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
profile: minimal | ||
override: true | ||
|
||
- name: Run semver-checks | ||
run: cargo run semver-checks check-release --manifest-path="crate/core-graphics/Cargo.toml" | ||
|
||
publish: | ||
name: Publish to crates.io | ||
runs-on: ubuntu-latest | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just moved all the comments describing what's going on to the same place.