Skip to content

Commit

Permalink
License check CI (#834)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dinonard authored Jan 19, 2023
1 parent 4017ade commit 8a70c36
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/license-check/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[
{
"include": [
"**/*.rs"
],
"license": "./.github/license-check/headers/HEADER-GNUv3"
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,3 @@

// You should have received a copy of the GNU General Public License
// along with Astar. If not, see <http://www.gnu.org/licenses/>.

16 changes: 16 additions & 0 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Static Analysis
on: [push, workflow_dispatch]
jobs:
fmt:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- name: Checkout the source code
Expand Down Expand Up @@ -29,6 +30,7 @@ jobs:
taplo fmt --check
clippy:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- name: Checkout the source code
Expand All @@ -47,3 +49,17 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features -- -D warnings

check-license:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- name: Checkout the source code
uses: actions/checkout@v3

- name: Check license
uses: viperproject/check-license-header@v2
with:
path: ./
config: ./.github/license-check/config.json
strict: false

0 comments on commit 8a70c36

Please sign in to comment.