From c37b4321f7b92b6698cea84e9f256c1f7eb12704 Mon Sep 17 00:00:00 2001 From: Alexander Krupenkin Date: Mon, 10 Jun 2024 09:07:13 +0300 Subject: [PATCH] [CI] added license check config --- .github/license-check/{header.txt => HEADER-APACHE2} | 2 +- .github/license-check/config.json | 11 +++++++++++ .github/workflows/static-analysis.yml | 2 +- 3 files changed, 13 insertions(+), 2 deletions(-) rename .github/license-check/{header.txt => HEADER-APACHE2} (92%) create mode 100644 .github/license-check/config.json diff --git a/.github/license-check/header.txt b/.github/license-check/HEADER-APACHE2 similarity index 92% rename from .github/license-check/header.txt rename to .github/license-check/HEADER-APACHE2 index 6adba7ff..26f75d52 100644 --- a/.github/license-check/header.txt +++ b/.github/license-check/HEADER-APACHE2 @@ -1,6 +1,6 @@ /////////////////////////////////////////////////////////////////////////////// // -// Copyright 2018-2023 Robonomics Network +// Copyright 2018-2024 Robonomics Network // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/.github/license-check/config.json b/.github/license-check/config.json new file mode 100644 index 00000000..89be9ef7 --- /dev/null +++ b/.github/license-check/config.json @@ -0,0 +1,11 @@ +[ + { + "include": [ + "**/*.rs" + ], + "exclude": [ + "vendor/**" + ], + "license": "./.github/license-check/HEADER-APACHE2" + } +] diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index daaa55c6..9ed5a8dc 100644 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -58,7 +58,7 @@ jobs: - uses: actions-rs/clippy-check@v1 with: token: ${{ secrets.GITHUB_TOKEN }} - args: --features try-runtime,runtime-benchmarks + args: --features runtime-benchmarks # TODO: Temporary permit warnings, remove it later when fix #-- -D warnings