Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
rparrett committed Feb 21, 2024
1 parent 8531033 commit afefc4d
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 8 deletions.
34 changes: 27 additions & 7 deletions .github/workflows/dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ name: Dependencies
on:
pull_request:
paths:
- '**/Cargo.toml'
- 'deny.toml'
- "**/Cargo.toml"
- "deny.toml"
push:
paths:
- '**/Cargo.toml'
- 'deny.toml'
- "**/Cargo.toml"
- "deny.toml"
branches:
- main

Expand All @@ -29,12 +29,32 @@ jobs:
check-bans:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Install cargo-deny
run: cargo install cargo-deny
- name: Check for banned and duplicated dependencies
run: cargo deny check bans
- uses: actions/checkout@v4
with:
ref: ${{ github.base_ref }}
- name: Cargo update (base)
run: cargo update
- name: Check for banned and duplicated dependencies (base)
run: |
set -o history
OUT_FILE=/tmp/deny-bans-base
cargo deny --format json check bans 2>&1 | jq -r -n '[inputs][] | select(.fields.severity != null) | "\(.fields.severity) \(.fields.message)"' | sort > $OUT_FILE
- uses: actions/checkout@v4
- name: Cargo update (PR)
run: cargo update
- name: Check for banned and duplicated dependencies (PR)
run: |
#!/bin/bash
OUT_FILE=/tmp/deny-bans-pr
cargo deny --format json check bans 2>&1 | jq -r -n '[inputs][] | select(.fields.severity != null) | "\(.fields.severity) \(.fields.message)"' | sort > $OUT_FILE && fail=1 || fail=0
if [[ $fail = "1" ]]; then
# show the diff with the entire output. if there's no diff, display the output.
diff -U99999 /tmp/deny-bans-pr /tmp/deny-bans-base && cat /tmp/deny-bans-pr
exit 1
fi
check-licenses:
runs-on: ubuntu-latest
Expand Down
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ categories = ["game-engines", "graphics", "gui", "rendering"]
description = "A refreshingly simple data-driven game engine and app framework"
exclude = ["assets/", "tools/", ".github/", "crates/", "examples/wasm/assets/"]
homepage = "https://bevyengine.org"
keywords = ["game", "engine", "gamedev", "graphics", "bevy"]
keywords = ["game", "engine", "gamedev", "graphics", "bevy", "TODO"]
license = "MIT OR Apache-2.0"
readme = "README.md"
repository = "https://github.com/bevyengine/bevy"
Expand Down Expand Up @@ -307,6 +307,7 @@ bevy_debug_stepping = ["bevy_internal/bevy_debug_stepping"]
[dependencies]
bevy_dylib = { path = "crates/bevy_dylib", version = "0.13.0", default-features = false, optional = true }
bevy_internal = { path = "crates/bevy_internal", version = "0.13.0", default-features = false }
windows = "=0.52.0"

[dev-dependencies]
rand = "0.8.0"
Expand Down

0 comments on commit afefc4d

Please sign in to comment.