Skip to content

Commit 7c8b13a

Browse files
committed
Check third-party license file as part of CI
1 parent 7f53ef6 commit 7c8b13a

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

.github/workflows/test.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ env:
1111

1212
jobs:
1313
check:
14-
1514
runs-on: ubuntu-latest
1615

1716
steps:
@@ -42,9 +41,7 @@ jobs:
4241
args: --tests
4342

4443
test:
45-
4644
runs-on: ubuntu-latest
47-
4845
name: test
4946

5047
steps:
@@ -66,3 +63,22 @@ jobs:
6663
- name: Run doctests
6764
run: cargo +stable test --doc --verbose
6865

66+
thirdparty-license:
67+
name: Check Datadog third-party license file
68+
runs-on: ubuntu-latest
69+
steps:
70+
- uses: actions/checkout@v4
71+
- name: Install Rust toolchain
72+
uses: dtolnay/rust-toolchain@stable
73+
74+
- name: Cache cargo tools
75+
uses: actions/cache@v4
76+
with:
77+
path: ~/.cargo/bin
78+
key: ${{ runner.os }}-cargo-tools-${{ hashFiles('**/Cargo.lock') }}
79+
80+
- name: Install dd-rust-license-tool
81+
run: dd-rust-license-tool --help || cargo install dd-rust-license-tool
82+
83+
- name: Check Datadog third-party license file
84+
run: dd-rust-license-tool check

0 commit comments

Comments
 (0)