Skip to content

Commit

Permalink
fix aerospike tests
Browse files Browse the repository at this point in the history
  • Loading branch information
khanayan123 committed Dec 27, 2023
1 parent 5b44e06 commit 4f72ce6
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions .github/workflows/plugins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,18 +88,31 @@ jobs:
- uses: actions/checkout@v2
- uses: ./.github/actions/testagent/start
- uses: ./.github/actions/node/setup
- run: yarn install --ignore-engines
- id: pkg
run: |
content=`cat ./package.json | tr '\n' ' '`
echo "::set-output name=json::$content"
- id: extract
run: |
version="${{fromJson(steps.pkg.outputs.json).version}}"
majorVersion=$(echo "$version" | cut -d '.' -f 1)
echo "Major Version: $majorVersion"
echo "MAJOR_VERSION=$majorVersion" >> $GITHUB_ENV
- uses: ./.github/actions/node/oldest
- run: yarn test:plugins:ci
- name: Install dependencies and run tests
if: env.MAJOR_VERSION != '5'
run: |
yarn install --ignore-engines
yarn test:plugins:ci
- if: always()
uses: ./.github/actions/testagent/logs
- uses: codecov/codecov-action@v2

aerospike-5:
strategy:
matrix:
node-version: [16]
range: ['5.5.0 - 5.7.0']
node-version: [18]
range: ['5.2.0 - 5.7.0']
include:
- node-version: 20
range: '>=5.8.0'
Expand Down Expand Up @@ -131,7 +144,7 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies and run tests
if: env.MAJOR_VERSION != '3'
if: env.MAJOR_VERSION == '5'
run: |
yarn install --ignore-engines
yarn test:plugins:ci
Expand Down

0 comments on commit 4f72ce6

Please sign in to comment.