Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

License check CI #834

Merged
merged 1 commit into from
Jan 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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