mirror of
https://github.com/element-hq/ess-helm.git
synced 2026-11-25 19:41:33 -08:00
46 lines
1.0 KiB
YAML
46 lines
1.0 KiB
YAML
# Copyright 2024 New Vector Ltd
|
|
#
|
|
# SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
|
|
|
name: Licensing checks
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
permissions:
|
|
contents: read
|
|
packages: read
|
|
|
|
jobs:
|
|
reuse-compliance-check:
|
|
runs-on: cpu-s
|
|
container:
|
|
image: ghcr.io/${{ github.repository }}/ci-runner
|
|
credentials:
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Define a cache for the virtual environment based on the dependencies lock file
|
|
uses: actions/cache@v3
|
|
with:
|
|
path: ./.venv
|
|
key: venv-${{ hashFiles('poetry.lock') }}
|
|
|
|
- name: Install venv
|
|
run: |
|
|
poetry env info
|
|
poetry install
|
|
echo "$(poetry env info -p)/bin" >> "${GITHUB_PATH}"
|
|
|
|
- name: reuse-lint
|
|
run: |
|
|
git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
|
reuse --version
|
|
reuse lint
|