Closed alephnull closed 4 years ago
@alephnull Hey, are you passing down a MongoDB version via the mongodb-version
input? Inputs in a GitHub workflow are below a "with" tag.
~This appears to be due to the _
in --name d00b33c5c17f1d10ab413ea94c275d5ee5830c_ac6eec
. I'm not sure how this is populated though.~
@alephnull Hey, are you passing down a MongoDB version via the
mongodb-version
input? Inputs in a GitHub workflow are below a "with" tag.
Should have mentioned. This is how I'm using it:
on:
pull_request:
branches: [master]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, ubuntu-16.04]
mongodb-versions: [4.0, 4.2]
redis-versions: [4, 5]
steps:
- uses: actions/checkout@v2
- name: start MongoDB
uses: supercharge/mongodb-github-action@1.2.0
with:
mongodb-version: ${{ matrix.mongodb-version }}
# mongodb-replica-set: test
I think it's the mongodb-versions
key in the strategy matrix. It should be singular mongodb-version
even though you're using an array. If want to use the plural, you must update the ${{ matrix.mongodb-version }}
value to plural as well -> ${{ matrix.mongodb-versions }}
Does this fix the problem?
Thanks you for your patience. This actions is better than the service container model in github as it enables matrix testing. Thank you very much for making this available.
Thank you! I'm happy to hear this action is useful for you 😃
Full trace below: