Skip to content

Commit

Permalink
ci: default tests using node20, additional tests using node{18,22}
Browse files Browse the repository at this point in the history
  • Loading branch information
robinbourianes-kalisio committed Jul 23, 2024
1 parent 4b3719c commit 8acbc5c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node: [ 18, 20 ]
mongo: [ 5, 6, 7 ]
node: [ 18, 22 ]
name: Additional tests
if: ${{ contains(github.event.head_commit.message, 'additional tests') }}
runs-on: ubuntu-22.04
Expand All @@ -45,7 +44,7 @@ jobs:
- name: Run tests
env:
SOPS_AGE_KEY: ${{ secrets.SOPS_AGE_KEY }}
run: bash ./scripts/run_tests.sh -n ${{ matrix.node }} -m ${{ matrix.mongo }}
run: bash ./scripts/run_tests.sh -n ${{ matrix.node }}

build_service:
name: Build service
Expand Down
4 changes: 2 additions & 2 deletions scripts/init_runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ THIS_DIR=$(dirname "$THIS_FILE")
### Github Actions

init_github_run_tests() {
install_reqs age sops nvm node16 cc_test_reporter
install_reqs age sops nvm node20 cc_test_reporter
}

init_github_additional_tests() {
install_reqs age sops nvm node18 node20 mongo5 mongo6 mongo7
install_reqs age sops nvm node18 node22
}

init_github_build_service() {
Expand Down
2 changes: 1 addition & 1 deletion scripts/kash
Submodule kash updated 3 files
+12 −0 CHANGELOG.md
+2 −0 README.md
+33 −31 kash.sh
2 changes: 1 addition & 1 deletion scripts/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ WORKSPACE_DIR="$(dirname "$ROOT_DIR")"
## Parse options
##

NODE_VER=16
NODE_VER=20
MONGO_VER=""
CI_STEP_NAME="Run tests"
CODE_COVERAGE=false
Expand Down

0 comments on commit 8acbc5c

Please sign in to comment.