From 12a24d04966beca8b7d7af0a517b4172c07a6fa6 Mon Sep 17 00:00:00 2001 From: tison Date: Thu, 1 Aug 2024 22:05:57 +0800 Subject: [PATCH] ci: check license header (#13) Signed-off-by: tison --- .github/workflows/ci.yml | 1 + src/append/opentelemetry.rs | 14 ++++++++++++++ src/layout/identical.rs | 14 ++++++++++++++ 3 files changed, 29 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6988418..a6f45bb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,6 +38,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - uses: korandoru/hawkeye@v5 - uses: Swatinem/rust-cache@v2 - uses: taiki-e/install-action@v2 with: diff --git a/src/append/opentelemetry.rs b/src/append/opentelemetry.rs index f0934a2..cf3eb8f 100644 --- a/src/append/opentelemetry.rs +++ b/src/append/opentelemetry.rs @@ -1,3 +1,17 @@ +// Copyright 2024 tison +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use std::sync::Arc; use std::time::Duration; use std::time::SystemTime; diff --git a/src/layout/identical.rs b/src/layout/identical.rs index 742b51a..5ced2d7 100644 --- a/src/layout/identical.rs +++ b/src/layout/identical.rs @@ -1,3 +1,17 @@ +// Copyright 2024 tison +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + use crate::layout::Layout; use std::fmt::Arguments;