Skip to content

Commit

Permalink
chore(workflow): add license-checker and pr-title-checker workflow (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
baifuyu authored Nov 21, 2023
1 parent 85fefd9 commit 6d0c30e
Show file tree
Hide file tree
Showing 224 changed files with 2,079 additions and 1,942 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/license-checker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: License Checker

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
check:
name: "License Validation"
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Check License Header
uses: apache/skywalking-eyes@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
log: info
- name: Check Dependencies' License
uses: apache/skywalking-eyes/dependency@main
3 changes: 2 additions & 1 deletion .github/workflows/openspg-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@

name: CI

on: [ pull_request ]
on:
pull_request:

jobs:
build:
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/pr-title-checker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: "Lint PR"

on:
pull_request_target:
types:
- opened
- edited
- synchronize

permissions:
pull-requests: write

jobs:
main:
name: Validate PR title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
wip: true
44 changes: 44 additions & 0 deletions .licenserc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
header:
license:
spdx-id: Apache-2.0
copyright-owner: Ant Group CO., Ltd.
content: |
Copyright 2023 Ant Group CO., Ltd.
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.
paths-ignore:
- 'dist'
- 'licenses'
- 'LICENSE'
- 'NOTICE'
- 'KNEXT_VERSION'
- '**/.*'
- '**/*.md'
- '**/*.tmpl'
- '**/*.txt'
- '**/*.csv'
- '**/*.dsl'
- '**/*.cfg'
- '**/*.schema'
- '**/*.rule'
- '**/*.json'
- '**/*.in'
- '**/META-INF/services/*'
- '**/*.conf'
- '**/*.yml'
- '**/*.yaml'

comment: on-failure

# If you don't want to check dependencies' license compatibility, remove the following part
dependency:
files:
- pom.xml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
/*
* Copyright 2023 Ant Group CO., Ltd.
*
* 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.
*/

#include <iostream>
#include <chrono>
#include "lgraph/lgraph.h"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
/*
* Copyright 2023 Ant Group CO., Ltd.
*
* 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.
*/

#include <iostream>
#include <chrono>
#include "lgraph/lgraph.h"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
/*
* Copyright 2023 Ant Group CO., Ltd.
*
* 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.
*/

#include <iostream>
#include <chrono>
#include "lgraph/lgraph.h"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
/*
* Copyright 2023 Ant Group CO., Ltd.
*
* 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.
*/

#include <iostream>
#include <chrono>
#include "lgraph/lgraph.h"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1 @@
#
# Copyright 2023 Ant Group CO., Ltd.
#
# 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.
#

com.antgroup.openspg.cloudext.impl.computing.local.LocalComputingClientDriver
Original file line number Diff line number Diff line change
@@ -1,14 +1 @@
#
# Copyright 2023 Ant Group CO., Ltd.
#
# 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.
#

com.antgroup.openspg.cloudext.impl.graphstore.tugraph.TuGraphStoreClientDriver
Original file line number Diff line number Diff line change
@@ -1,14 +1 @@
#
# Copyright 2023 Ant Group CO., Ltd.
#
# 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.
#

com.antgroup.openspg.cloudext.impl.jobscheduler.local.LocalJobSchedulerClientDriver
Original file line number Diff line number Diff line change
@@ -1,14 +1 @@
#
# Copyright 2023 Ant Group CO., Ltd.
#
# 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.
#

com.antgroup.openspg.cloudext.impl.objectstore.local.LocalObjectStoreClientDriver
Original file line number Diff line number Diff line change
@@ -1,14 +1 @@
#
# Copyright 2023 Ant Group CO., Ltd.
#
# 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.
#

com.antgroup.openspg.cloudext.impl.repository.jdbc.JdbcRepositoryClientDriver
Original file line number Diff line number Diff line change
@@ -1,14 +1 @@
#
# Copyright 2023 Ant Group CO., Ltd.
#
# 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.
#

com.antgroup.openspg.cloudext.impl.tablestore.local.LocalTableStoreClientDriver
com.antgroup.openspg.cloudext.impl.tablestore.local.LocalTableStoreClientDriver
11 changes: 11 additions & 0 deletions dev/release/mysql/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# Copyright 2023 Ant Group CO., Ltd.
#
# 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.

FROM mariadb:10.5.8

ENV MYSQL_DATABASE=openspg \
Expand Down
11 changes: 11 additions & 0 deletions dev/release/mysql/initdb.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
-- Copyright 2023 Ant Group CO., Ltd.
--
-- 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.

use openspg;

CREATE TABLE `kg_project_info` (
Expand Down
Loading

0 comments on commit 6d0c30e

Please sign in to comment.