Bump the pip group across 1 directory with 4 updates #600
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: License check | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
types: [ labeled, opened, reopened, synchronize ] | |
env: | |
GO_VERSION: 1.19 | |
GOFLAGS: -mod=readonly | |
jobs: | |
build: | |
if: contains(github.event.pull_request.labels.*.name, 'licensei') | |
name: Build project | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- name: Cache build dependencies | |
id: cache-build-dependencies | |
uses: actions/cache@v4 | |
with: | |
path: bin/ | |
key: build-deps-v2-{{ hashFiles('common.mk') }} | |
restore-keys: | | |
build-deps-v2- | |
- name: Cache licenses | |
id: cache-licenses | |
uses: actions/cache@v4 | |
with: | |
path: | | |
.licensei.cache | |
components/heimdall/.licensei.cache | |
components/echo-server/.licensei.cache | |
components/bifrost/.licensei.cache | |
experimental/mobile/.licensei.cache | |
experimental/java/.licensei.cache | |
key: licensei-v2-${{ hashFiles('go.sum') }} | |
restore-keys: | | |
licensei-v2- | |
- name: Download license information for dependencies | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Note: this is required for licensei auth in steps to avoid rate-limiting. | |
run: make license-cache-all | |
- name: List license information for dependencies | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Note: this is required for licensei auth in steps to avoid rate-limiting. | |
run: ./bin/licensei list | |
- name: Check dependency licenses | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Note: this is required for licensei auth in steps to avoid rate-limiting. | |
run: make license-check-all |