Skip to content
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
60d4b72
Change how MongoDB is installed for ubuntu-latest
Turnerj Dec 24, 2022
36f9c2e
Debugging information
Turnerj Dec 24, 2022
c814a79
Check output
Turnerj Dec 24, 2022
945de7d
Install specific version
Turnerj Dec 24, 2022
0746017
Try MongoDB 4.4
Turnerj Dec 24, 2022
70dda81
Testing alternative solution
Turnerj Dec 24, 2022
151cc3a
Try again for specific version
Turnerj Dec 24, 2022
f63e2d2
Try 5.0
Turnerj Dec 24, 2022
7d6bad8
Version number as string
Turnerj Dec 24, 2022
ab5cc1c
Try 6.0 again
Turnerj Dec 24, 2022
dfd6e3f
Specify MongoDB long version
Turnerj Dec 24, 2022
3b5a571
Add MongoDB back for Windows too
Turnerj Dec 24, 2022
f76c6f1
Fix MongoDB for MacOS
Turnerj Dec 24, 2022
c09c6a4
Update MongoDB versioning for Chocolatey
Turnerj Dec 24, 2022
b0529bf
Add missing update for MacOS
Turnerj Dec 24, 2022
94d5241
Because not everything has the same versions available
Turnerj Dec 24, 2022
bc71ce4
Would help if I installed MongoDB on MacOS...
Turnerj Dec 24, 2022
1a5f3b6
Try to just start the already installed one on Windows
Turnerj Dec 24, 2022
bbdd5e5
More updates for Windows
Turnerj Dec 24, 2022
6bb7338
Experimenting with custom MongoDB versions
Turnerj Dec 25, 2022
966dcb2
Alternative install process for Windows
Turnerj Dec 25, 2022
c9e05d4
Make sure to uninstall both MongoDB packages
Turnerj Dec 25, 2022
224d40e
Correct ordering helps
Turnerj Dec 25, 2022
afcb520
More choco experimentation
Turnerj Dec 25, 2022
17e5faa
Let's see if we can get some logs
Turnerj Dec 25, 2022
c69b21e
Try portable version?
Turnerj Dec 25, 2022
3d538fb
Get multiple MongoDB versions tested
Turnerj Dec 25, 2022
1fc8019
Use certain versions of Ubuntu
Turnerj Dec 25, 2022
87ece57
Fix conditional check for MongoDB install for Ubuntu
Turnerj Dec 25, 2022
db2259c
Try and use the right version from the right source
Turnerj Dec 25, 2022
920096c
Because you can't remove what isn't there
Turnerj Dec 25, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 36 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,48 @@ env:
jobs:

build:
name: Build ${{matrix.os}}
name: Build (${{matrix.os}}, MongoDB ${{matrix.mongodb}})
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
os: [windows-latest, macOS-latest]
mongodb: ['4.4', '5.0', '6.0']
include:
- os: ubuntu-20.04
mongodb: '4.4'
ubuntu: 'focal'
- os: ubuntu-20.04
mongodb: '5.0'
ubuntu: 'focal'
- os: ubuntu-latest
mongodb: '6.0'
ubuntu: 'jammy'
steps:
- name: Configure MongoDB (MacOS)
if: matrix.os == 'macOS-latest'
run: brew services start [email protected]
- name: Configure MongoDB (Ubuntu)
if: matrix.os == 'ubuntu-latest'
run: sudo systemctl start mongod
run: |
brew tap mongodb/brew
brew update
brew install mongodb-community@${{matrix.mongodb}}
brew services start mongodb-community@${{matrix.mongodb}}
- name: Configure MongoDB (Ubuntu (20.04))
if: matrix.os == 'ubuntu-20.04'
run: sudo apt remove mongodb-org
- name: Configure MongoDB (Ubuntu (All))
if: matrix.os == 'ubuntu-latest' || matrix.os == 'ubuntu-20.04'
run: |
wget -qO - https://www.mongodb.org/static/pgp/server-${{matrix.mongodb}}.asc | gpg --dearmor | sudo tee /usr/share/keyrings/mongodb.gpg > /dev/null
echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb.gpg ] https://repo.mongodb.org/apt/ubuntu ${{matrix.ubuntu}}/mongodb-org/${{matrix.mongodb}} multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-${{matrix.mongodb}}.list
sudo apt update
sudo apt install mongodb-org
sudo systemctl start mongod
- name: Configure MongoDB (Windows)
if: matrix.os == 'windows-latest'
shell: powershell
run: |
choco uninstall mongodb mongodb.install
$latestPackageVersion = Get-LatestChocoPackageVersion -TargetVersion ${{matrix.mongodb}} -PackageName "mongodb.install"
choco install mongodb.portable --version=$latestPackageVersion

- name: Checkout
uses: actions/checkout@v2
Expand Down