This is an automated email from the ASF dual-hosted git repository.
tison pushed a commit to branch unstable
in repository https://gitbox.apache.org/repos/asf/kvrocks.git
The following commit(s) were added to refs/heads/unstable by this push:
new 444976a9 ci: Update actions to avoid Node.js deprecated warning (#2098)
444976a9 is described below
commit 444976a97401d961557faff9c436516cd1cf875f
Author: Aleks Lozovyuk <[email protected]>
AuthorDate: Thu Feb 15 13:36:04 2024 +0200
ci: Update actions to avoid Node.js deprecated warning (#2098)
Co-authored-by: Twice <[email protected]>
Co-authored-by: hulk <[email protected]>
---
.github/workflows/kvrocks.yaml | 41 ++++++++++++++++++++++-------------------
.github/workflows/nightly.yaml | 12 ++++++------
.github/workflows/sonar.yaml | 6 +++---
3 files changed, 31 insertions(+), 28 deletions(-)
diff --git a/.github/workflows/kvrocks.yaml b/.github/workflows/kvrocks.yaml
index ac7bfd87..45d1916a 100644
--- a/.github/workflows/kvrocks.yaml
+++ b/.github/workflows/kvrocks.yaml
@@ -39,8 +39,8 @@ jobs:
outputs:
docs_only: ${{ steps.result.outputs.docs_only }}
steps:
- - uses: actions/checkout@v3
- - uses: dorny/paths-filter@v2
+ - uses: actions/checkout@v4
+ - uses: dorny/[email protected]
id: changes
with:
filters: .github/config/changes.yml
@@ -56,9 +56,9 @@ jobs:
env:
FORCE_COLOR: 1
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
- name: Install typos
- run: curl -LsSf
https://github.com/crate-ci/typos/releases/download/v1.18.1/typos-v1.18.1-x86_64-unknown-linux-musl.tar.gz
| tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin
+ run: curl -LsSf
https://github.com/crate-ci/typos/releases/download/v1.18.2/typos-v1.18.2-x86_64-unknown-linux-musl.tar.gz
| tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin
- name: Run typos check
run: typos --config .github/config/typos.toml
@@ -68,15 +68,16 @@ jobs:
if: ${{ needs.precondition.outputs.docs_only != 'true' }}
runs-on: ubuntu-22.04
steps:
- - uses: actions/checkout@v3
- - uses: actions/setup-go@v3
+ - uses: actions/checkout@v4
+ - uses: actions/setup-go@v5
with:
go-version-file: 'tests/gocase/go.mod'
+ cache: false
- name: Prepare Dependencies
run: |
sudo apt update
sudo apt install -y clang-format-14 clang-tidy-14
- - uses: apache/skywalking-eyes/[email protected]
+ - uses: apache/skywalking-eyes/[email protected]
with:
config: .github/config/licenserc.yml
- name: Check with clang-format
@@ -96,7 +97,7 @@ jobs:
git diff -p > clang-format.patch
cat clang-format.patch
- name: Upload format patch
- uses: actions/upload-artifact@v3
+ uses: actions/upload-artifact@v4
if: always() && steps.check-format.outcome != 'success'
with:
path: clang-format.patch
@@ -214,7 +215,7 @@ jobs:
- name: Cache redis
id: cache-redis
- uses: actions/cache@v3
+ uses: actions/cache@v4
with:
path: |
~/local/bin/redis-cli
@@ -227,16 +228,17 @@ jobs:
mkdir -p $HOME/local/bin
pushd redis-6.2.7 && BUILD_TLS=yes make -j$NPROC redis-cli && mv
src/redis-cli $HOME/local/bin/ && popd
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
with:
fetch-depth: 0
- - uses: actions/setup-python@v4
+ - uses: actions/setup-python@v5
with:
python-version: 3.x
- - uses: actions/setup-go@v3
+ - uses: actions/setup-go@v5
with:
go-version-file: 'tests/gocase/go.mod'
-
+ cache: false
+
- name: Install gcovr 5.0
run: pip install gcovr==5.0 # 5.1 is not supported
if: ${{ matrix.sonarcloud }}
@@ -308,7 +310,7 @@ jobs:
exit 1
fi
- - uses: actions/upload-artifact@v3
+ - uses: actions/upload-artifact@v4
if: ${{ failure() && startsWith(matrix.os, 'ubuntu') }}
with:
name: kvrocks-coredumps-${{ matrix.name }}
@@ -330,7 +332,7 @@ jobs:
- name: Upload SonarCloud data
if: ${{ matrix.sonarcloud }}
- uses: actions/upload-artifact@v3
+ uses: actions/upload-artifact@v4
with:
name: sonarcloud-data
path: ${{ env.SONARCLOUD_OUTPUT_DIR }}
@@ -341,10 +343,10 @@ jobs:
if: ${{ needs.precondition.outputs.docs_only != 'true' }}
runs-on: ubuntu-20.04
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
- name: Get core numbers
run: echo "NPROC=$(nproc)" >> $GITHUB_ENV
- - uses: docker/build-push-action@v3
+ - uses: docker/build-push-action@v5
with:
context: .
build-args: MORE_BUILD_ARGS=-j${{ env.NPROC }}
@@ -438,11 +440,12 @@ jobs:
wget
https://github.com/Kitware/CMake/releases/download/v3.26.4/cmake-3.26.4-linux-x86_64.sh
bash cmake-3.26.4-linux-x86_64.sh --skip-license --prefix=/usr
- - uses: actions/checkout@v3
- - uses: actions/setup-go@v3
+ - uses: actions/checkout@v3 #v4 use Node 20 and not working at CentOS 7
+ - uses: actions/setup-go@v4 #v5 use Node 20 too
if: ${{ !startsWith(matrix.image, 'opensuse') }}
with:
go-version-file: 'tests/gocase/go.mod'
+ cache: false
- name: Build Kvrocks
run: |
diff --git a/.github/workflows/nightly.yaml b/.github/workflows/nightly.yaml
index 6ea6e7d3..736b603e 100644
--- a/.github/workflows/nightly.yaml
+++ b/.github/workflows/nightly.yaml
@@ -30,20 +30,20 @@ jobs:
if: github.repository_owner == 'apache'
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
- name: Login Docker Hub
if: (github.event_name != 'pull_request')
- uses: docker/login-action@v1
+ uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Set up QEMU
- uses: docker/setup-qemu-action@v1
+ uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
id: buildx
- uses: docker/setup-buildx-action@v1
+ uses: docker/setup-buildx-action@v3
- name: Available platforms
run: echo ${{ steps.buildx.outputs.platforms }}
@@ -53,7 +53,7 @@ jobs:
- name: Docker meta
id: meta
- uses: docker/metadata-action@v4
+ uses: docker/metadata-action@v5
with:
images: apache/kvrocks
flavor: latest=false
@@ -61,7 +61,7 @@ jobs:
type=sha,prefix=nightly-{{date 'YYYYMMDD'}}-,format=short
type=raw,value=nightly
- - uses: docker/build-push-action@v3
+ - uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64, linux/arm64
diff --git a/.github/workflows/sonar.yaml b/.github/workflows/sonar.yaml
index 36a2d2a0..a106823c 100644
--- a/.github/workflows/sonar.yaml
+++ b/.github/workflows/sonar.yaml
@@ -28,7 +28,7 @@ jobs:
runs-on: ubuntu-22.04
if: github.event.workflow_run.conclusion == 'success' &&
github.repository_owner == 'apache'
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
with:
repository: ${{ github.event.workflow_run.head_repository.full_name
}}
ref: ${{ github.event.workflow_run.head_sha }}
@@ -36,7 +36,7 @@ jobs:
- name: Install sonar-scanner and build-wrapper
uses: SonarSource/sonarcloud-github-c-cpp@v2
- name: 'Download code coverage'
- uses: actions/github-script@v6
+ uses: actions/github-script@v7
with:
script: |
let allArtifacts = await
github.rest.actions.listWorkflowRunArtifacts({
@@ -60,7 +60,7 @@ jobs:
unzip sonarcloud-data.zip -d sonarcloud-data
ls -a sonarcloud-data
- - uses: actions/setup-python@v4
+ - uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Configure Kvrocks