Skip to content

Commit

Permalink
Add a license check for each file to CI (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
rkuris authored Sep 26, 2023
1 parent 5b2dc05 commit 4eb4bbb
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
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

0 comments on commit 4eb4bbb

Please sign in to comment.