Add license header workflow

This commit is contained in:
Seaotatop 2023-06-25 16:14:13 -05:00
parent 1d052ba2b2
commit ec8a488806

21
.github/workflows/license_headers.yml vendored Normal file
View file

@ -0,0 +1,21 @@
name: Check MPL license headers
on:
push:
branches:
- "main"
pull_request:
branches:
- "main"
workflow_dispatch:
jobs:
check_headers:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install addlicense
run: go install github.com/google/addlicense@latest
- name: Check headers
run: $GOPATH/bin/addlicense -check -l mpl *.rs