Skip to content

use SwiftLang's license header check #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Oct 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 1 addition & 21 deletions .github/workflows/pull_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,34 +13,14 @@ 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
api_breakage_check_container_image: "swift:6.0-noble"
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
Expand Down
14 changes: 14 additions & 0 deletions .license_header_template
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
@@===----------------------------------------------------------------------===@@
@@
@@ This source file is part of the Swift OpenAPI Lambda open source project
@@
@@ Copyright (c) YEARS Amazon.com, Inc. or its affiliates
@@ and the Swift OpenAPI Lambda project authors
@@ Licensed under Apache License v2.0
@@
@@ See LICENSE.txt for license information
@@ See CONTRIBUTORS.txt for the list of Swift OpenAPI Lambda project authors
@@
@@ SPDX-License-Identifier: Apache-2.0
@@
@@===----------------------------------------------------------------------===@@
1 change: 0 additions & 1 deletion .licenseignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.gitignore
.licenseignore
.swiftformatignore
.spi.yml
.swift-format
Expand Down
99 changes: 0 additions & 99 deletions scripts/check-license-headers.sh

This file was deleted.