Skip to content

Commit

Permalink
workflows: Use service container for MongoDB
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkuhn committed Mar 17, 2024
1 parent 3b46f73 commit 4e2db1f
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -241,15 +241,15 @@ jobs:
db: mysql
db-server: mariadb
exclude:
# MongoDB is not available on Ubuntu 22.04
- os:
dist: ubuntu-22.04
julea:
kv: mongodb
# libfabric is too old on Ubuntu 20.04
- os:
dist: ubuntu-20.04
dependencies: system
services:
mongodb:
image: ${{ matrix.julea.kv == 'mongodb' && 'docker.io/library/mongo' || '' }}
ports:
- 27017:27017
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -290,12 +290,6 @@ jobs:
if: ${{ matrix.dependencies == 'spack' && steps.cache.outputs.cache-hit != 'true' }}
run: |
exit 1
- name: Set up MongoDB
if: ${{ matrix.julea.kv == 'mongodb' }}
run: |
sudo apt update || true
sudo apt --yes --no-install-recommends install mongodb-server
sudo systemctl start mongodb.service
- name: Set up MySQL
if: ${{ matrix.julea.db == 'mysql' && matrix.julea.db-server == 'mysql' }}
run: |
Expand Down

0 comments on commit 4e2db1f

Please sign in to comment.