use SwiftLang's license header check (#10)

* use SwiftLang's license header check with https://github.com/swiftlang/github-workflows/pull/36

* remove .licenseignore fril from .licenseignore
This commit is contained in:
Sébastien Stormacq
2024-10-17 23:10:54 +02:00
committed by GitHub
parent d38a1f6b28
commit a59a5721fc
4 changed files with 15 additions and 121 deletions
+1 -21
View File
@@ -13,8 +13,7 @@ jobs:
name: Soundness
uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main
with:
# do not use SwiftLang's license header check because the copyright for this project is Amazon.com + contributors
license_header_check_enabled: false
license_header_check_enabled: true
license_header_check_project_name: "Swift OpenAPI Lambda"
shell_check_enabled: false
python_lint_check_enabled: false
@@ -22,25 +21,6 @@ jobs:
docs_check_container_image: "swift:6.0-noble"
format_check_container_image: "swiftlang/swift:nightly-6.0-jammy"
license:
name: License headers check
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Mark the workspace as safe
# https://github.com/actions/checkout/issues/766
run: git config --global --add safe.directory ${GITHUB_WORKSPACE}
- name: License headers check
env:
PROJECT_NAME: "Swift OpenAPI Lambda"
run: |
./scripts/check-license-headers.sh
unit-tests:
name: Unit tests
uses: apple/swift-nio/.github/workflows/unit_tests.yml@main