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 improvements: dependabot frequency, experimental testing #559

Merged
merged 8 commits into from
Jul 25, 2023
Merged
Show file tree
Hide file tree
Changes from all 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
5 changes: 3 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ updates:
- package-ecosystem: cargo
directory: "/"
schedule:
interval: daily
interval: weekly
day: monday
time: "15:00"
timezone: "Europe/Warsaw"
open-pull-requests-limit: 10
open-pull-requests-limit: 10
34 changes: 33 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ on:
env:
CARGO_TERM_COLOR: always

# Automatically cancels a job if a new commit if pushed to the same PR, branch, or tag.
# Source: <https://stackoverflow.com/a/72408109/5148606>
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
check:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -89,6 +95,19 @@ jobs:
- uses: mozilla-actions/sccache-action@v0.0.3
- name: Run cargo test
run: cargo test
test-experimental:
runs-on:
group: 8-cores_32GB_Ubuntu Group
timeout-minutes: 60
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
- uses: mozilla-actions/sccache-action@v0.0.3
- name: Run cargo test --features experimental
run: cargo test --features experimental
coverage:
runs-on:
group: 8-cores_32GB_Ubuntu Group
Expand Down Expand Up @@ -153,9 +172,23 @@ jobs:
echo "Curl failed, retrying in 5 seconds..."
sleep 5
done
check-licenses:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- name: Setup Rust toolchain
run: rustup show
- run: cargo install cargo-deny
- run: cargo deny check licenses
cargo-doc-artifact:
runs-on: ubuntu-latest
timeout-minutes: 90
# We only deploy `cargo doc` to GH pages on `stable`, but let's at least
# build it on `nightly` as well to avoid nasty surprises when merging
# `nightly` into `stable`. Running it on every PR would be excessive,
# though.
if: (github.ref == 'refs/heads/stable') || (github.ref == 'refs/heads/nightly')
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
Expand All @@ -177,7 +210,6 @@ jobs:
deploy-github-pages:
needs: cargo-doc-artifact
timeout-minutes: 5
# No point in deploying if we're not on `stable`, as it will just fail.
if: github.ref == 'refs/heads/stable'
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
Expand Down
1 change: 1 addition & 0 deletions adapters/celestia/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name = "jupiter"
version = { workspace = true }
edition = { workspace = true }
license = { workspace = true }

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down
24 changes: 24 additions & 0 deletions deny.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[licenses]
# Deny crates that do not have a license.
unlicensed = "deny"
allow = [
"Apache-2.0",
"MIT",
"Unlicense",
"Unicode-DFS-2016",
"MPL-2.0",
"ISC",
"CC0-1.0",
"BSD-2-Clause",
"BSD-3-Clause",
"OpenSSL",
]

[[licenses.clarify]]
name = "ring"
# ring is derived from BoringSSL and has a bit of a special licensing situation,
# but we can effectively treat is as OpenSSL-like licensing.
expression = "OpenSSL"
license-files = [
{ path = "LICENSE", hash = 0xbd0eed23 }
]
1 change: 1 addition & 0 deletions examples/const-rollup-config/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ name = "const-rollup-config"
version = { workspace = true }
edition = { workspace = true }
authors = { workspace = true }
license = { workspace = true }
homepage = "sovereign.xyz"
publish = false
1 change: 1 addition & 0 deletions examples/demo-rollup/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "sov-demo-rollup"
version = { workspace = true }
edition = { workspace = true }
authors = { workspace = true }
license = { workspace = true }
homepage = "sovereign.xyz"
publish = false
resolver = "2"
Expand Down
1 change: 1 addition & 0 deletions examples/demo-simple-stf/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version = { workspace = true }
edition = { workspace = true }
resolver = "2"
authors = { workspace = true }
license = { workspace = true }
homepage = "sovereign.xyz"
publish = false

Expand Down
1 change: 1 addition & 0 deletions examples/demo-stf/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version = { workspace = true }
edition = { workspace = true }
resolver = "2"
authors = { workspace = true }
license = { workspace = true }
homepage = "sovereign.xyz"
publish = false

Expand Down
Loading