diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 45ad768..548ad20 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -12,19 +12,9 @@ jobs: with: license_header_check_project_name: "gRPC" - swift-license-check: - name: Swift License Header Check - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4 - with: - persist-credentials: false - - name: Mark the workspace as safe - run: git config --global --add safe.directory ${GITHUB_WORKSPACE} - - name: Run license check - run: | - ./dev/license-check.sh + grpc-soundness: + name: Soundness + uses: ./.github/workflows/soundness.yml unit-tests: name: Unit Tests diff --git a/.github/workflows/soundness.yml b/.github/workflows/soundness.yml new file mode 100644 index 0000000..43447ea --- /dev/null +++ b/.github/workflows/soundness.yml @@ -0,0 +1,19 @@ +name: Soundness + +on: + workflow_call: + +jobs: + swift-license-check: + name: Swift license headers check + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + persist-credentials: false + - name: Mark the workspace as safe + run: git config --global --add safe.directory ${GITHUB_WORKSPACE} + - name: Run license check + run: | + ./dev/license-check.sh diff --git a/.licenseignore b/.licenseignore index 72aab0f..42ee25d 100644 --- a/.licenseignore +++ b/.licenseignore @@ -7,6 +7,7 @@ .mailmap .spi.yml .swift-format +.swiftformatignore .editorconfig .github/* *.md diff --git a/.swiftformatignore b/.swiftformatignore new file mode 100644 index 0000000..c73cb4c --- /dev/null +++ b/.swiftformatignore @@ -0,0 +1,2 @@ +*.grpc.swift +*.pb.swift diff --git a/.unacceptablelanguageignore b/.unacceptablelanguageignore new file mode 100644 index 0000000..fe70e9d --- /dev/null +++ b/.unacceptablelanguageignore @@ -0,0 +1,3 @@ +**/*.pb.swift +**/*.grpc.swift +dev/protos/upstream/**/*.proto