From 69982ee29b077718299e1cc1b7cc2c9104930cf8 Mon Sep 17 00:00:00 2001 From: Ji Hoon Bae Date: Tue, 13 Aug 2024 14:36:34 +0900 Subject: [PATCH] Version up github action workflow that is working with node12 or node16 that is deprecated (#4825) * ci: version up actions/checkout@v2 to v4 Signed-off-by: JiHoon Bae * ci: version up actions/setup-go@v2 to v5 Signed-off-by: JiHoon Bae * ci: version up actions/setup-node@v3 to v4 Signed-off-by: JiHoon Bae * ci: version up dorny/paths-filter@v2 to v3 Signed-off-by: JiHoon Bae --------- Signed-off-by: JiHoon Bae Co-authored-by: Namkyu Park <53862866+namkyu1999@users.noreply.github.com> --- .github/workflows/build.yml | 32 +++++++++++++-------------- .github/workflows/codeql-analysis.yml | 2 +- .github/workflows/e2e.yml | 8 +++---- .github/workflows/gh-pages.yaml | 2 +- .github/workflows/push.yml | 22 +++++++++--------- 5 files changed, 32 insertions(+), 34 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 87647008e21..83fd3a22de8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,7 +22,7 @@ jobs: # dex-server: ${{ steps.filter.outputs.dex-server }} steps: # For pull requests it's not necessary to checkout the code - - uses: dorny/paths-filter@v2 + - uses: dorny/paths-filter@v3 id: filter with: filters: | @@ -44,7 +44,7 @@ jobs: gitleaks-scan: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Run GitLeaks @@ -59,9 +59,8 @@ jobs: if: needs.changes.outputs.graphql-server == 'true' || needs.changes.outputs.authentication == 'true' || needs.changes.outputs.subscriber == 'true' || needs.changes.outputs.event-tracker == 'true' steps: - name: Checkout repository - uses: actions/checkout@v2 - - - uses: actions/setup-go@v2 + uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: go-version: "1.22" # By default, the go version is v1.15 in runner. @@ -82,9 +81,8 @@ jobs: if: ${{ needs.changes.outputs.frontend == 'true' }} steps: - name: Checkout repository - uses: actions/checkout@v2 - - - uses: actions/setup-node@v3 + uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: 16 @@ -101,8 +99,8 @@ jobs: - backend-checks steps: - name: Checkout repository - uses: actions/checkout@v2 - - uses: actions/setup-go@v2 + uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: go-version: "1.22" # By default, the go version is v1.15 in runner. - name: Backend unit tests @@ -118,8 +116,8 @@ jobs: - frontend-checks steps: - name: Checkout repository - uses: actions/checkout@v2 - - uses: actions/setup-node@v3 + uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: 16 - name: Chaoscenter web unit tests @@ -137,7 +135,7 @@ jobs: if: ${{ needs.changes.outputs.graphql-server == 'true' }} steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Build graphql server docker image shell: bash @@ -164,7 +162,7 @@ jobs: if: ${{ needs.changes.outputs.authentication == 'true' }} steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Build auth server docker image shell: bash @@ -191,7 +189,7 @@ jobs: if: ${{ needs.changes.outputs.subscriber == 'true' }} steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Build subscriber docker image shell: bash @@ -217,7 +215,7 @@ jobs: if: ${{ needs.changes.outputs.frontend == 'true' }} steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: yarn build check run: | @@ -248,7 +246,7 @@ jobs: if: ${{ needs.changes.outputs.event-tracker == 'true' }} steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Build event tracker docker image shell: bash diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index b36af186eda..b6d928809ef 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -39,7 +39,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 9f46d1aafd1..a5097807f53 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -38,12 +38,12 @@ jobs: outputs: changed-paths: ${{ steps.filter.outputs.changes }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: ref: ${{ needs.find-latest-commit-sha.outputs.commit-sha }} fetch-depth: 0 - - uses: dorny/paths-filter@v2 + - uses: dorny/paths-filter@v3 id: filter with: ref: ${{ needs.find-latest-commit-sha.outputs.commit-sha }} @@ -64,7 +64,7 @@ jobs: matrix: path: ${{ fromJSON(needs.find-changes.outputs.changed-paths) }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: ref: ${{ needs.find-latest-commit-sha.outputs.commit-sha }} fetch-depth: 0 @@ -88,7 +88,7 @@ jobs: runs-on: ubuntu-18.04 steps: - name: Checkout litmus-E2E Repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: repository: litmuschaos/litmus-e2e path: litmus-e2e diff --git a/.github/workflows/gh-pages.yaml b/.github/workflows/gh-pages.yaml index e31925f3255..318e355ad3a 100644 --- a/.github/workflows/gh-pages.yaml +++ b/.github/workflows/gh-pages.yaml @@ -9,7 +9,7 @@ jobs: deploy: runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Setup Python uses: actions/setup-python@v1 with: diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index e4f50e0df92..f43195373d1 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -16,8 +16,8 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v2 - - uses: actions/setup-go@v2 + uses: actions/checkout@v4 + - uses: actions/setup-go@v5 with: go-version: "1.22" # By default, the go version is v1.15 in runner. - run: | @@ -27,8 +27,8 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v2 - - uses: actions/setup-node@v3 + uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: 16 - run: | @@ -38,7 +38,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - run: | img_tag="" array=(`echo ${GITHUB_REF} | sed 's/\//\n/g'`) @@ -75,7 +75,7 @@ jobs: - backend-checks steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Downloading image artficate uses: actions/download-artifact@v2 @@ -113,7 +113,7 @@ jobs: - backend-checks steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Downloading image artficate uses: actions/download-artifact@v2 @@ -151,7 +151,7 @@ jobs: - backend-checks steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Downloading image artficate uses: actions/download-artifact@v2 @@ -189,7 +189,7 @@ jobs: - backend-checks steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Downloading image artficate uses: actions/download-artifact@v2 @@ -240,7 +240,7 @@ jobs: - frontend-checks steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Downloading image artficate uses: actions/download-artifact@v2 @@ -254,7 +254,7 @@ jobs: with: version: latest - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 with: node-version: 16