-
Notifications
You must be signed in to change notification settings - Fork 5
46 lines (39 loc) · 1.1 KB
/
check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
# SPDX-FileCopyrightText: 2021 HH Partners, Attorneys-at-law Ltd <[email protected]>
# SPDX-License-Identifier: CC0-1.0
name: Check
on:
push:
branches:
- "main"
pull_request:
branches:
- "main"
env:
ORT_VERSION: 6.0.0
jobs:
Check:
runs-on: ubuntu-latest
steps:
- name: Clone the repository
uses: actions/checkout@v2
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Setup ORT helper-cli
run: |
wget https://github.com/oss-review-toolkit/ort/releases/download/$ORT_VERSION/orth-$ORT_VERSION.zip
unzip orth-$ORT_VERSION.zip -d /opt
- name: Check license-classifications.yml
run: /opt/orth-$ORT_VERSION/bin/orth list-license-categories -i license-classifications.yml
Lint:
runs-on: ubuntu-latest
steps:
- name: Clone the repository
uses: actions/checkout@v2
- name: Lint YAML files
uses: ibiqlik/action-yamllint@v3
with:
file_or_dir: license-classifications.yml