From 92dd0ba1f4c24afa6aaa3f9d935a301fc990b8e4 Mon Sep 17 00:00:00 2001
From: CJ42 <cavallerajean@gmail.com>
Date: Thu, 12 Dec 2024 18:24:52 +0000
Subject: [PATCH] ci: upgrade checkout action to v4

---
 .github/workflows/benchmark.yml       |  4 +--
 .github/workflows/build-lint-test.yml |  2 +-
 .github/workflows/coverage.yml        |  2 +-
 .github/workflows/deploy-verify.yml   |  2 +-
 .github/workflows/foundry-tests.yml   |  2 +-
 .github/workflows/mythx-analysis.yml  |  2 +-
 .github/workflows/release.yml         |  2 +-
 .github/workflows/solc_version.yml    |  2 +-
 .github/workflows/spellcheck.yaml     | 48 +++++++++++++--------------
 9 files changed, 33 insertions(+), 33 deletions(-)

diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml
index 2fe306db6..c148e18f0 100644
--- a/.github/workflows/benchmark.yml
+++ b/.github/workflows/benchmark.yml
@@ -28,7 +28,7 @@ jobs:
 
     steps:
       - name: Checkout base branch
-        uses: actions/checkout@v3
+        uses: actions/checkout@v4
         with:
           ref: ${{ github.event.pull_request.base.sha }}
           fetch-depth: 0
@@ -53,7 +53,7 @@ jobs:
           mv gas_benchmark_result.json gas_benchmark_before.json
 
       - name: Checkout current branch
-        uses: actions/checkout@v3
+        uses: actions/checkout@v4
         # Do not run `git clean -ffdx && git reset --hard HEAD` to prevent removing `gas_benchmark_before.json`
         with:
           clean: false
diff --git a/.github/workflows/build-lint-test.yml b/.github/workflows/build-lint-test.yml
index 2e5ef1338..6603abc4f 100644
--- a/.github/workflows/build-lint-test.yml
+++ b/.github/workflows/build-lint-test.yml
@@ -9,7 +9,7 @@ jobs:
     runs-on: ubuntu-latest
 
     steps:
-      - uses: actions/checkout@v3
+      - uses: actions/checkout@v4
 
       # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
       - name: Use Node.js v20
diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml
index 31c70e4eb..d3e6b3f9c 100644
--- a/.github/workflows/coverage.yml
+++ b/.github/workflows/coverage.yml
@@ -20,7 +20,7 @@ jobs:
     runs-on: ubuntu-latest
     if: github.event.pull_request.merged == true
     steps:
-      - uses: actions/checkout@v3
+      - uses: actions/checkout@v4
 
       - name: Use Node.js v20.x
         uses: actions/setup-node@v4
diff --git a/.github/workflows/deploy-verify.yml b/.github/workflows/deploy-verify.yml
index 51e51d8cb..618e4474f 100644
--- a/.github/workflows/deploy-verify.yml
+++ b/.github/workflows/deploy-verify.yml
@@ -21,7 +21,7 @@ jobs:
 
     runs-on: ubuntu-latest
     steps:
-      - uses: actions/checkout@v3
+      - uses: actions/checkout@v4
 
       - name: Use Node.js v20
         uses: actions/setup-node@v4
diff --git a/.github/workflows/foundry-tests.yml b/.github/workflows/foundry-tests.yml
index 0f450fc69..b595cc860 100644
--- a/.github/workflows/foundry-tests.yml
+++ b/.github/workflows/foundry-tests.yml
@@ -11,7 +11,7 @@ jobs:
   foundry-tests:
     runs-on: ubuntu-latest
     steps:
-      - uses: actions/checkout@v3
+      - uses: actions/checkout@v4
         with:
           submodules: recursive
 
diff --git a/.github/workflows/mythx-analysis.yml b/.github/workflows/mythx-analysis.yml
index 8503487e4..ec5a59dfc 100644
--- a/.github/workflows/mythx-analysis.yml
+++ b/.github/workflows/mythx-analysis.yml
@@ -13,7 +13,7 @@ jobs:
     runs-on: ubuntu-latest
 
     steps:
-      - uses: actions/checkout@v3
+      - uses: actions/checkout@v4
 
       - name: Setup Node.js '20.x'
         uses: actions/setup-node@v4
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 44d776d22..ebdd5e041 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -31,7 +31,7 @@ jobs:
       # The `if` statements ensure that a publication only occurs when
       # a new release is created:
 
-      - uses: actions/checkout@v3
+      - uses: actions/checkout@v4
         if: ${{ steps.release.outputs.releases_created }}
 
       - name: Use Node.js v20
diff --git a/.github/workflows/solc_version.yml b/.github/workflows/solc_version.yml
index a1f28e3d8..afeb8ad67 100644
--- a/.github/workflows/solc_version.yml
+++ b/.github/workflows/solc_version.yml
@@ -51,7 +51,7 @@ jobs:
             "0.8.27",
           ]
     steps:
-      - uses: actions/checkout@v3
+      - uses: actions/checkout@v4
 
       - name: Use Node.js '20.x'
         uses: actions/setup-node@v4
diff --git a/.github/workflows/spellcheck.yaml b/.github/workflows/spellcheck.yaml
index c030aa7c3..58dfc544a 100644
--- a/.github/workflows/spellcheck.yaml
+++ b/.github/workflows/spellcheck.yaml
@@ -1,29 +1,29 @@
 # This workflow checks for common grammar and spelling mistake in markdown files.
- name: Spellcheck
- on: [pull_request]
+name: Spellcheck
+on: [pull_request]
 
- jobs:
-   build:
-     name: Check Grammar and Spelling errors
-     runs-on: ubuntu-latest
-     steps:
-       - name: Checkout 🛎️
-         uses: actions/checkout@v4
-         with:
-           fetch-depth: 0
+jobs:
+  build:
+    name: Check Grammar and Spelling errors
+    runs-on: ubuntu-latest
+    steps:
+      - name: Checkout 🛎️
+        uses: actions/checkout@v4
+        with:
+          fetch-depth: 0
 
-       - name: Install ⚙️
-         run: npm ci
+      - name: Install ⚙️
+        run: npm ci
 
-       - name: Check spelling errors in code snippets 🔍
-         uses: codespell-project/actions-codespell@v2
-         with:
-           path: packages/lsp-smart-contracts/docs
-           check_filenames: true
-           ignore_words_list: datas
+      - name: Check spelling errors in code snippets 🔍
+        uses: codespell-project/actions-codespell@v2
+        with:
+          path: packages/lsp-smart-contracts/docs
+          check_filenames: true
+          ignore_words_list: datas
 
-       - name: Output Spellcheck Results 📝
-         uses: actions/upload-artifact@v3
-         with:
-           name: Spellcheck Output
-           path: spellcheck-output.txt
\ No newline at end of file
+      - name: Output Spellcheck Results 📝
+        uses: actions/upload-artifact@v3
+        with:
+          name: Spellcheck Output
+          path: spellcheck-output.txt