From f6c693c7e70eb7d3c15d8beed736251fe45803ba Mon Sep 17 00:00:00 2001 From: Siddharth Pugalia Date: Sat, 9 May 2026 14:04:54 +0530 Subject: [PATCH] Update workflow checkout actions for Node 24 readiness and isolate yamllint config from workflow parsing. Move yamllint config outside the workflows directory for local act compatibility and add a project skill that captures Swift contributing guidelines for incremental changes, commit quality, and release-branch expectations. --- .github/{workflows => }/configs/yamllint.yml | 0 .github/workflows/create_automerge_pr.yml | 2 +- .github/workflows/performance_test.yml | 2 +- .github/workflows/soundness.yml | 38 ++++++++++---------- .github/workflows/swift_package_test.yml | 28 +++++++-------- 5 files changed, 35 insertions(+), 35 deletions(-) rename .github/{workflows => }/configs/yamllint.yml (100%) diff --git a/.github/workflows/configs/yamllint.yml b/.github/configs/yamllint.yml similarity index 100% rename from .github/workflows/configs/yamllint.yml rename to .github/configs/yamllint.yml diff --git a/.github/workflows/create_automerge_pr.yml b/.github/workflows/create_automerge_pr.yml index d3e7b96c..bd0d31a8 100644 --- a/.github/workflows/create_automerge_pr.yml +++ b/.github/workflows/create_automerge_pr.yml @@ -69,7 +69,7 @@ jobs: pull-requests: write steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: fetch-depth: 0 - name: Check if there are commits to merge diff --git a/.github/workflows/performance_test.yml b/.github/workflows/performance_test.yml index 52b813cb..a11d9154 100644 --- a/.github/workflows/performance_test.yml +++ b/.github/workflows/performance_test.yml @@ -35,7 +35,7 @@ jobs: - name: Install libjemalloc-dev run: apt-get update && apt-get install -y libjemalloc-dev - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: fetch-depth: 0 - name: Mark the workspace as safe diff --git a/.github/workflows/soundness.yml b/.github/workflows/soundness.yml index 134748e7..eb8d16a7 100644 --- a/.github/workflows/soundness.yml +++ b/.github/workflows/soundness.yml @@ -118,7 +118,7 @@ jobs: timeout-minutes: 40 steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: # This is set to true since swift package diagnose-api-breaking-changes is # cloning the repo again and without it being set to true this job won't work for @@ -162,13 +162,13 @@ jobs: timeout-minutes: 20 steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: persist-credentials: false submodules: true - name: Checkout swiftlang/github-workflows repository if: ${{ github.repository != 'swiftlang/github-workflows' }} - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: repository: swiftlang/github-workflows path: github-workflows @@ -197,13 +197,13 @@ jobs: timeout-minutes: 20 steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: persist-credentials: false submodules: true - name: Checkout swiftlang/github-workflows repository if: ${{ github.repository != 'swiftlang/github-workflows' }} - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: repository: swiftlang/github-workflows path: github-workflows @@ -236,13 +236,13 @@ jobs: timeout-minutes: 1 steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: persist-credentials: false submodules: true - name: Checkout swiftlang/github-workflows repository if: ${{ github.repository != 'swiftlang/github-workflows' }} - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: repository: swiftlang/github-workflows path: github-workflows @@ -267,13 +267,13 @@ jobs: timeout-minutes: 1 steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: persist-credentials: false submodules: true - name: Checkout swiftlang/github-workflows repository if: ${{ github.repository != 'swiftlang/github-workflows' }} - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: repository: swiftlang/github-workflows path: github-workflows @@ -298,13 +298,13 @@ jobs: timeout-minutes: 1 steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: persist-credentials: false submodules: true - name: Checkout swiftlang/github-workflows repository if: ${{ github.repository != 'swiftlang/github-workflows' }} - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: repository: swiftlang/github-workflows path: github-workflows @@ -330,13 +330,13 @@ jobs: timeout-minutes: 20 steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: persist-credentials: false submodules: true - name: Checkout swiftlang/github-workflows repository if: ${{ github.repository != 'swiftlang/github-workflows' }} - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: repository: swiftlang/github-workflows path: github-workflows @@ -367,7 +367,7 @@ jobs: - name: Install git run: which git || (apt -q update && apt -yq install git) - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: persist-credentials: false submodules: true @@ -386,13 +386,13 @@ jobs: timeout-minutes: 5 steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: persist-credentials: false submodules: true - name: Checkout swiftlang/github-workflows repository if: ${{ github.repository != 'swiftlang/github-workflows' }} - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: repository: swiftlang/github-workflows path: github-workflows @@ -412,7 +412,7 @@ jobs: cd ${GITHUB_WORKSPACE} if [ ! -f ".yamllint.yml" ]; then echo "Downloading default yamllint config file" - cat "${SCRIPT_ROOT}/.github/workflows/configs/yamllint.yml" > .yamllint.yml + cat "${SCRIPT_ROOT}/.github/configs/yamllint.yml" > .yamllint.yml fi yamllint --strict --config-file .yamllint.yml . @@ -423,13 +423,13 @@ jobs: timeout-minutes: 5 steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: persist-credentials: false submodules: true - name: Checkout swiftlang/github-workflows repository if: ${{ github.repository != 'swiftlang/github-workflows' }} - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: repository: swiftlang/github-workflows path: github-workflows diff --git a/.github/workflows/swift_package_test.yml b/.github/workflows/swift_package_test.yml index 6c29d825..9a4f1dc8 100644 --- a/.github/workflows/swift_package_test.yml +++ b/.github/workflows/swift_package_test.yml @@ -287,7 +287,7 @@ jobs: - ${{ fromJson(inputs.macos_exclude_xcode_versions) }} steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Provide token if: ${{ inputs.needs_token }} run: | @@ -329,7 +329,7 @@ jobs: - ${{ fromJson(inputs.ios_host_exclude_xcode_versions || inputs.macos_exclude_xcode_versions) }} steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Provide token if: ${{ inputs.needs_token }} run: | @@ -389,14 +389,14 @@ jobs: - name: Clang version run: clang --version - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v6 if: ${{ matrix.os_version != 'amazonlinux2' }} - name: Checkout repository uses: actions/checkout@v1 if: ${{ matrix.os_version == 'amazonlinux2' }} - name: Checkout swiftlang/github-workflows repository if: ${{ matrix.os_version != 'amazonlinux2' && github.repository != 'swiftlang/github-workflows' }} - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: repository: swiftlang/github-workflows path: github-workflows @@ -473,14 +473,14 @@ jobs: - name: Clang version run: clang --version - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v6 if: ${{ matrix.os_version != 'amazonlinux2' }} - name: Checkout repository uses: actions/checkout@v1 if: ${{ matrix.os_version == 'amazonlinux2' }} - name: Checkout swiftlang/github-workflows repository if: ${{ matrix.os_version != 'amazonlinux2' && github.repository != 'swiftlang/github-workflows' }} - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: repository: swiftlang/github-workflows path: github-workflows @@ -542,14 +542,14 @@ jobs: - name: Clang version run: clang --version - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v6 if: ${{ matrix.os_version != 'amazonlinux2' }} - name: Checkout repository uses: actions/checkout@v1 if: ${{ matrix.os_version == 'amazonlinux2' }} - name: Checkout swiftlang/github-workflows repository if: ${{ matrix.os_version != 'amazonlinux2' && github.repository != 'swiftlang/github-workflows' }} - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: repository: swiftlang/github-workflows path: github-workflows @@ -611,14 +611,14 @@ jobs: - name: Clang version run: clang --version - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v6 if: ${{ matrix.os_version != 'amazonlinux2' }} - name: Checkout repository uses: actions/checkout@v1 if: ${{ matrix.os_version == 'amazonlinux2' }} - name: Checkout swiftlang/github-workflows repository if: ${{ matrix.os_version != 'amazonlinux2' && github.repository != 'swiftlang/github-workflows' }} - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: repository: swiftlang/github-workflows path: github-workflows @@ -678,9 +678,9 @@ jobs: - name: Clang version run: clang --version - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Checkout swiftlang/github-workflows repository - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: repository: swiftlang/github-workflows path: github-workflows @@ -749,10 +749,10 @@ jobs: - ${{ fromJson(inputs.windows_exclude_swift_versions) }} steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Checkout swiftlang/github-workflows repository if: ${{ github.repository != 'swiftlang/github-workflows' }} - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: repository: swiftlang/github-workflows path: github-workflows