Skip to content

chore(common): extend getRequiredEnvVar method to check empty values #30

chore(common): extend getRequiredEnvVar method to check empty values

chore(common): extend getRequiredEnvVar method to check empty values #30

# This workflow verifies that:
# - Dependency licenses compliance
name: library-solidity-integrity-checks
on:
pull_request:
permissions: {}
concurrency:
group: library-solidity-integrity-checks-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
check-changes:
name: library-solidity-integrity-checks/check-changes
permissions:
contents: 'read' # Required to checkout repository code
runs-on: ubuntu-latest
outputs:
changes-library-solidity: ${{ steps.filter.outputs.library-solidity }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: 'false'
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
id: filter
with:
filters: |
library-solidity:
- .github/workflows/library-solidity-integrity-checks.yml
- library-solidity/**
- ci/check_spdx_licenses.sh
contract-integrity-checks:
name: library-solidity-integrity-checks/contract-integrity-checks (bpr)
needs: check-changes
if: ${{ needs.check-changes.outputs.changes-library-solidity == 'true' }}
permissions:
contents: 'read' # Required to checkout repository code
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: 'false'
- name: Check SPDX license headers
working-directory: library-solidity
run: make check-spdx-headers