-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix mock for the
replace-only
function (#56)
* Fix mock for the `replace-only` function. - It should throw an AerospikeException when the item doesn't exist. - Current it replaces the underlying data with an AerospikeException type object. * Pin the clj-kondo version * PR #56 code review comments [1] * Don't use `clojure-lint-action`, run `lein lint` instead * Add missing distribution * Using `8` instead of `1.8` in java-version * Use a pinned Aerospike version in the CI * Run on latest ubuntu LTS version
- Loading branch information
Showing
8 changed files
with
159 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,22 +7,29 @@ on: | |
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-18.04 | ||
runs-on: ubuntu-22.04 | ||
timeout-minutes: 5 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
fetch-depth: 0 | ||
|
||
- name: Set up JDK 8 | ||
uses: actions/setup-java@v1 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: 1.8 | ||
distribution: corretto | ||
java-version: 8 | ||
|
||
- name: Restore local Maven repository from cache | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles( 'project.clj' ) }} | ||
restore-keys: | | ||
${{ runner.os }}-maven- | ||
- name: Validate SNAPSHOT version | ||
env: | ||
SNAPSHOT_REGEX: ^[0-9]{1,2}[.][0-9]{1,2}[.][0-9]{1,3}-SNAPSHOT$ | ||
|
@@ -36,20 +43,17 @@ jobs: | |
echo "Version isn't a SNAPSHOT version:" $VERSION | ||
exit 0 | ||
fi | ||
- name: Lint | ||
uses: DeLaGuardo/clojure-lint-action@v1 | ||
with: | ||
clj-kondo-args: --lint src test --cache false | ||
check-name: clj-kondo liniting report | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Run linters | ||
run: lein lint | ||
|
||
test: | ||
needs: build | ||
runs-on: ubuntu-18.04 | ||
runs-on: ubuntu-22.04 | ||
timeout-minutes: 5 | ||
services: | ||
aerospike-test: | ||
image: aerospike | ||
image: aerospike:4.9.0.11 | ||
ports: | ||
- 3000:3000 | ||
- 3001:3001 | ||
|
@@ -59,20 +63,28 @@ jobs: | |
AEROSPIKE_HOST: localhost | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
fetch-depth: 0 | ||
|
||
- name: Set up JDK 8 | ||
uses: actions/setup-java@v1 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: 1.8 | ||
distribution: corretto | ||
java-version: 8 | ||
|
||
- name: Restore local Maven repository from cache | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles( 'project.clj' ) }} | ||
restore-keys: | | ||
${{ runner.os }}-maven- | ||
- name: Unit and Integration tests | ||
run: lein eftest :all | ||
|
||
- name: Publish unit and integration test results | ||
uses: EnricoMi/[email protected] | ||
if: always() | ||
|
@@ -82,22 +94,29 @@ jobs: | |
|
||
deploy: | ||
needs: test | ||
runs-on: ubuntu-18.04 | ||
runs-on: ubuntu-22.04 | ||
timeout-minutes: 5 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
fetch-depth: 0 | ||
|
||
- name: Set up JDK 8 | ||
uses: actions/setup-java@v1 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: 1.8 | ||
distribution: corretto | ||
java-version: 8 | ||
|
||
- name: Restore local Maven repository from cache | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles( 'project.clj' ) }} | ||
restore-keys: | | ||
${{ runner.os }}-maven- | ||
- name: Deploy SNAPSHOT version | ||
env: | ||
SNAPSHOT_REGEX: ^[0-9]{1,2}[.][0-9]{1,2}[.][0-9]{1,3}-SNAPSHOT$ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,22 +7,29 @@ on: | |
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-18.04 | ||
runs-on: ubuntu-22.04 | ||
timeout-minutes: 5 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
fetch-depth: 0 | ||
|
||
- name: Set up JDK 8 | ||
uses: actions/setup-java@v1 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: 1.8 | ||
distribution: corretto | ||
java-version: 8 | ||
|
||
- name: Restore local Maven repository from cache | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles( 'project.clj' ) }} | ||
restore-keys: | | ||
${{ runner.os }}-maven- | ||
- name: Validate SNAPSHOT version | ||
env: | ||
SNAPSHOT_REGEX: ^[0-9]{1,2}[.][0-9]{1,2}[.][0-9]{1,3}-SNAPSHOT$ | ||
|
@@ -36,20 +43,17 @@ jobs: | |
echo "Version isn't a SNAPSHOT version:" $VERSION | ||
exit 0 | ||
fi | ||
- name: Lint | ||
uses: DeLaGuardo/clojure-lint-action@v1 | ||
with: | ||
clj-kondo-args: --lint src test --cache false | ||
check-name: clj-kondo liniting report | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Run linters | ||
run: lein lint | ||
|
||
test: | ||
needs: build | ||
runs-on: ubuntu-18.04 | ||
runs-on: ubuntu-22.04 | ||
timeout-minutes: 5 | ||
services: | ||
aerospike-test: | ||
image: aerospike | ||
image: aerospike:4.9.0.11 | ||
ports: | ||
- 3000:3000 | ||
- 3001:3001 | ||
|
@@ -59,20 +63,28 @@ jobs: | |
AEROSPIKE_HOST: localhost | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
fetch-depth: 0 | ||
|
||
- name: Set up JDK 8 | ||
uses: actions/setup-java@v1 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: 1.8 | ||
distribution: corretto | ||
java-version: 8 | ||
|
||
- name: Restore local Maven repository from cache | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles( 'project.clj' ) }} | ||
restore-keys: | | ||
${{ runner.os }}-maven- | ||
- name: Unit and Integration tests | ||
run: lein eftest :all | ||
|
||
- name: Publish unit and integration test results | ||
uses: EnricoMi/[email protected] | ||
if: always() | ||
|
@@ -82,22 +94,29 @@ jobs: | |
|
||
deploy: | ||
needs: test | ||
runs-on: ubuntu-18.04 | ||
runs-on: ubuntu-22.04 | ||
timeout-minutes: 5 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
fetch-depth: 0 | ||
|
||
- name: Set up JDK 8 | ||
uses: actions/setup-java@v1 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: 1.8 | ||
distribution: corretto | ||
java-version: 8 | ||
|
||
- name: Restore local Maven repository from cache | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles( 'project.clj' ) }} | ||
restore-keys: | | ||
${{ runner.os }}-maven- | ||
- name: Deploy release version | ||
env: | ||
RELEASE_REGEX: ^[0-9]{1,2}[.][0-9]{1,2}[.][0-9]{1,3}$ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,5 @@ aerospike-clj.iml | |
target | ||
.nrepl-port | ||
.lsp | ||
/.clj-kondo/.cache | ||
.java-version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.