2021-05-10 08:38:56 +00:00
|
|
|
name: license-check
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths:
|
|
|
|
- 'vendor'
|
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- 'vendor'
|
2022-04-16 23:56:39 +00:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2021-05-10 08:38:56 +00:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-11-21 10:00:47 +00:00
|
|
|
- name: Code checkout
|
|
|
|
uses: actions/checkout@master
|
|
|
|
|
2021-05-10 08:38:56 +00:00
|
|
|
- name: Setup Go
|
2023-11-21 10:00:47 +00:00
|
|
|
id: go
|
2023-12-08 13:55:31 +00:00
|
|
|
uses: actions/setup-go@v5
|
2021-05-10 08:38:56 +00:00
|
|
|
with:
|
2023-11-21 09:36:53 +00:00
|
|
|
go-version: stable
|
|
|
|
cache: false
|
2023-11-21 10:00:47 +00:00
|
|
|
|
2023-11-21 09:36:53 +00:00
|
|
|
- name: Cache Go artifacts
|
|
|
|
uses: actions/cache@v3
|
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
~/.cache/go-build
|
|
|
|
~/go/pkg/mod
|
|
|
|
~/go/bin
|
2023-11-21 10:00:47 +00:00
|
|
|
key: go-artifacts-${{ runner.os }}-check-licenses-${{ steps.go.outputs.go-version }}-${{ hashFiles('go.sum', 'Makefile', 'app/**/Makefile') }}
|
2023-11-21 09:36:53 +00:00
|
|
|
restore-keys: go-artifacts-${{ runner.os }}-check-licenses-
|
2023-11-21 10:00:47 +00:00
|
|
|
|
2021-05-10 08:38:56 +00:00
|
|
|
- name: Check License
|
2023-11-21 09:36:53 +00:00
|
|
|
run: make check-licenses
|