File tree Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -545,9 +545,15 @@ jobs:
545
545
steps :
546
546
- name : Checkout
547
547
uses : actions/checkout@v2
548
- - name : Check
548
+ - name : Setup MongoDB
549
549
run : |
550
- sudo systemctl start mongod.service
550
+ sudo apt update
551
+ sudo apt install -y wget gnupg
552
+ wget -qO - https://www.mongodb.org/static/pgp/server-6.0.asc | sudo apt-key add -
553
+ echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/6.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-6.0.list
554
+ sudo apt update
555
+ sudo apt install -y mongodb-org
556
+ sudo systemctl start mongod
551
557
- name : Setup PHP
552
558
uses : shivammathur/setup-php@v2
553
559
with :
@@ -900,9 +906,15 @@ jobs:
900
906
steps :
901
907
- name : Checkout
902
908
uses : actions/checkout@v2
903
- - name : Check
909
+ - name : Setup MongoDB
904
910
run : |
905
- sudo systemctl start mongod.service
911
+ sudo apt update
912
+ sudo apt install -y wget gnupg
913
+ wget -qO - https://www.mongodb.org/static/pgp/server-6.0.asc | sudo apt-key add -
914
+ echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/6.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-6.0.list
915
+ sudo apt update
916
+ sudo apt install -y mongodb-org
917
+ sudo systemctl start mongod
906
918
- name : Setup PHP
907
919
uses : shivammathur/setup-php@v2
908
920
with :
You can’t perform that action at this time.
0 commit comments