Skip to content

Commit

Permalink
ci: update github actions (#2584)
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksraiden authored Oct 6, 2024
1 parent b8788bc commit efb489f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/kvrocks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
docs_only: ${{ steps.result.outputs.docs_only }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3.0.0
- uses: dorny/paths-filter@v3
id: changes
with:
filters: .github/config/changes.yml
Expand All @@ -58,7 +58,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Check typos
uses: crate-ci/typos@v1.22.9
uses: crate-ci/typos@v1.25.0
with:
config: .github/config/typos.toml

Expand Down Expand Up @@ -204,11 +204,12 @@ jobs:
runs-on: ${{ matrix.os }}
env:
SONARCLOUD_OUTPUT_DIR: sonarcloud-data
FORCE_JAVASCRIPT_ACTIONS_TO_NODE20: true
steps:
- name: Setup macOS
if: ${{ startsWith(matrix.os, 'macos') }}
run: |
brew install cmake gcc autoconf automake libtool openssl coreutils
brew install --quiet --formula cmake gcc autoconf automake libtool openssl coreutils
echo "NPROC=$(sysctl -n hw.ncpu)" >> $GITHUB_ENV
echo "CMAKE_EXTRA_DEFS=-DOPENSSL_ROOT_DIR=/usr/local/opt/openssl" >> $GITHUB_ENV
- name: Setup Linux
Expand Down Expand Up @@ -486,15 +487,15 @@ jobs:
- name: Cache redis
id: cache-redis
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/local/bin/redis-cli
key: ${{ matrix.image }}-redis-cli

- name: Cache redis server
id: cache-redis-server
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/local/bin/redis-server
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sonar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
ref: ${{ github.event.workflow_run.head_sha }}
fetch-depth: 0
- name: Install sonar-scanner and build-wrapper
uses: SonarSource/sonarcloud-github-c-cpp@v2
uses: SonarSource/sonarcloud-github-c-cpp@v3
- name: 'Download code coverage'
uses: actions/github-script@v7
with:
Expand Down
2 changes: 1 addition & 1 deletion src/types/geohash.cc
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ constexpr double D_R = M_PI / 180.0;

// @brief The usual PI/180 constant
// const double DEG_TO_RAD = 0.017453292519943295769236907684886;
// @brief Earth's quatratic mean radius for WGS-84
// @brief Earth's quadratic mean radius for WGS-84
const double EARTH_RADIUS_IN_METERS = 6372797.560856;

const double MERCATOR_MAX = 20037726.37;
Expand Down
4 changes: 2 additions & 2 deletions tests/gocase/integration/slotmigrate/slotmigrate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,7 @@ func TestSlotMigrateDataType(t *testing.T) {
require.EqualValues(t, originRes.Length, migratedRes.Length)
}

migrateStreamWithDeletedEnties := func(t *testing.T, migrateType SlotMigrationType) {
migrateStreamWithDeletedEntries := func(t *testing.T, migrateType SlotMigrationType) {
require.NoError(t, rdb0.ConfigSet(ctx, "migrate-type", string(migrateType)).Err())

testSlot += 1
Expand Down Expand Up @@ -961,7 +961,7 @@ func TestSlotMigrateDataType(t *testing.T) {
})

t.Run(fmt.Sprintf("MIGRATE - Migrating stream with deleted entries using %s", testType), func(t *testing.T) {
migrateStreamWithDeletedEnties(t, testType)
migrateStreamWithDeletedEntries(t, testType)
})

t.Run(fmt.Sprintf("MIGRATE - Migrate incremental data via parsing and filtering data in WAL using %s", testType), func(t *testing.T) {
Expand Down

0 comments on commit efb489f

Please sign in to comment.