Skip to content

Commit

Permalink
Merge pull request #57 from ksummarized/00056_add_license_compilance_…
Browse files Browse the repository at this point in the history
…checker
  • Loading branch information
Sojusan authored Aug 6, 2023
2 parents fcc13b3 + 48600cb commit 7c08e33
Show file tree
Hide file tree
Showing 9 changed files with 10,936 additions and 10,306 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/build-and-test-backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,29 @@ env:
jobs:
build-and-test-backend:
name: build-and-test-${{matrix.os}}
runs-on: ubuntu-latest
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
- uses: actions/checkout@v3

- name: Setup .NET Core ${{ env.DOTNET_VERSION }}
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

- name: Install dependencies
working-directory: ./backend
run: dotnet restore

- name: Check licenses
working-directory: ./backend
run: |
dotnet tool install --global dotnet-project-licenses --version 2.7.1
dotnet-project-licenses -i src --allowed-license-types allowed-licenses.json
- name: Build
working-directory: ./backend
run: dotnet build --configuration Release --no-restore
Expand Down
15 changes: 11 additions & 4 deletions .github/workflows/lint-and-test-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,26 @@ env:
jobs:
build-and-test-frontend:
name: list-and-test-${{matrix.os}}
runs-on: ubuntu-latest
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2
- uses: actions/checkout@v3
- name: Setup Node ${{ env.NODE_VERSION }}
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}

- name: Install dependencies
working-directory: ./frontend
run: npm install

- name: Check licenses
working-directory: ./frontend
run: npm run license-checker-linux

- name: Lint
working-directory: ./frontend
run: npm run lint
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-to-container-registry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@v5
with:
Expand Down
15 changes: 15 additions & 0 deletions backend/allowed-licenses.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[
"MIT",
"ISC",
"Apache-2.0",
"BSD-3-Clause",
"BSD-2-Clause",
"CC0-1.0",
"0BSD",
"Python-2.0",
"MPL-2.0",
"CC-BY-4.0",
"CC-BY-3.0",
"EULA.md",
"PostgreSQL"
]
1 change: 1 addition & 0 deletions frontend/allowed-licenses.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
MIT;ISC;Apache-2.0;BSD-3-Clause;BSD-2-Clause;CC0-1.0;0BSD;Python-2.0;MPL-2.0;CC-BY-4.0;CC-BY-3.0;"EULA.md";"PostgreSQL"
1 change: 1 addition & 0 deletions frontend/licenses-exclude-packages.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[email protected]
Loading

0 comments on commit 7c08e33

Please sign in to comment.