[Build] Add Github workflows (#9517)

As an replacement to Travis CI.
This commit is contained in:
Jianchao Yang
2020-04-14 13:38:09 -07:00
committed by GitHub
parent aef06ded6b
commit 7b4b0d1c61
22 changed files with 1387 additions and 535 deletions

22
.github/workflows/license-check.yml vendored Normal file
View File

@@ -0,0 +1,22 @@
name: License
on:
push:
branches: [ master ]
pull_request:
jobs:
check:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Setup Java
uses: actions/setup-java@v1
with:
java-version: 8
- name: Generate fossa report
env:
FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }}
run: ./scripts/fossa.sh
- name: Run license check
run: ./scripts/check_license.sh