Upgrade to MongoDB 7.0.4 #126
Workflow file for this run
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
name: KBase Auth2 tests | |
on: | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- synchronize | |
- ready_for_review | |
push: | |
# run workflow when merging to main or develop | |
branches: | |
- main | |
- master | |
- develop | |
jobs: | |
auth2_tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
# Note that there's a mongo-only ant test directive. Use that for all mongo versions | |
# except for one if there's > 1 mongo version to test. No need for testing code that | |
# doesn't touch mongo against multiple mongo versions | |
include: | |
- java: '8' | |
mongo: 'mongodb-linux-x86_64-ubuntu2204-7.0.4' | |
wired_tiger: 'false' | |
- java: '11' | |
mongo: 'mongodb-linux-x86_64-3.6.23' | |
wired_tiger: 'true' | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup java | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: ${{matrix.java}} | |
- name: Clone jars as sister repo | |
shell: bash | |
run: | | |
cd .. | |
git clone https://github.com/kbase/jars | |
cd - | |
- name: Install mongo and set up test config | |
shell: bash | |
run: | | |
cd .. | |
wget -q http://fastdl.mongodb.org/linux/${{matrix.mongo}}.tgz | |
tar xfz ${{matrix.mongo}}.tgz | |
export MONGOD=`pwd`/${{matrix.mongo}}/bin/mongod | |
cd - | |
cp -n test.cfg.example test.cfg | |
sed -i "s#^test.temp.dir=.*#test.temp.dir=temp_test_dir#" test.cfg | |
sed -i "s#^test.mongo.exe.*#test.mongo.exe=$MONGOD#" test.cfg | |
sed -i "s#^test.mongo.wired_tiger.*#test.mongo.wired_tiger=${{matrix.wired_tiger}}#" test.cfg | |
cat test.cfg | |
- name: Run tests | |
run: ant test | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
fail_ci_if_error: true |