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

Add a license check for each file to CI #263

Merged
merged 15 commits into from
Sep 26, 2023
38 changes: 38 additions & 0 deletions .github/check-license-headers.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
[
{
"include": [
"**/**/*.rs"
],
"exclude": [
"target/**",
"*/LICENSE*",
"LICENSE.md",
"RELEASE.md",
"rpc/**",
"README*",
"*/README*",
"Cargo.toml",
"*/Cargo.toml",
"libaio/**",
"docs/**",
"CODEOWNERS"
],
"license": "./.github/license-header.txt"
},
{
"include": [
"target/**",
"*/LICENSE*",
"LICENSE.md",
"RELEASE.md",
"rpc/**",
"README*",
"*/README*",
"Cargo.toml",
"*/Cargo.toml",
"libaio/**",
"docs/**",
"CODEOWNERS"
],
}
]
2 changes: 2 additions & 0 deletions .github/license-header.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Copyright (C) %year%, Ava Labs, Inc. All rights reserved.
// See the file LICENSE.md for licensing terms.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,12 @@ jobs:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: arduino/setup-protoc@v2
- name: Check license headers
uses: viperproject/check-license-header@v2
with:
path: .
config: .github/check-license-headers.yaml
strict: true
- name: Restore Check Deps
id: cache-build-deps-restore
uses: actions/cache/restore@v3
Expand Down