Add Licensed cache and workflow

This commit is contained in:
Jonathan Clem
2022-03-23 11:21:12 -04:00
parent 62a16d0b8d
commit eaee5d30ce
28 changed files with 928 additions and 1 deletions

24
.github/workflows/licensed.yml vendored Normal file
View File

@@ -0,0 +1,24 @@
name: Licensed
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
name: Check licenses
steps:
- uses: actions/checkout@v3
- run: npm ci
- name: Install licensed
run: |
cd $RUNNER_TEMP
curl -Lfs -o licensed.tar.gz https://github.com/github/licensed/releases/download/3.6.0/licensed-3.6.0-linux-x64.tar.gz
sudo tar -xzf licensed.tar.gz
sudo mv licensed /usr/local/bin/licensed
- run: licensed status