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