Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
khoidt authored Jan 26, 2025
1 parent 4d0b5f6 commit c125288
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ env:

jobs:
test:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: ["3.9", "pypy-3.9"]
Expand All @@ -37,6 +37,23 @@ jobs:
curl -O http://security.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.19_amd64.deb
sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2.19_amd64.deb || true
sudo apt-get -f install -y # Resolve any dependency issues
sudo ldconfig # Reload dynamic linker cache
- name: Install MongoDB
run: |
curl -fsSL https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list
sudo apt-get update
sudo apt-get install -y mongodb-org
sudo ldconfig
- name: Set MongoDB Binary
run: echo "export MONGOD_EXECUTABLE=$(which mongod)" >> $GITHUB_ENV

- name: Debug MongoDB Binary
run: |
ls -l /usr/bin/mongod
ldd /usr/bin/mongod
- name: Install Rust
run: |
Expand Down Expand Up @@ -82,7 +99,7 @@ jobs:
docker:
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
needs: [test]
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3

Expand Down

0 comments on commit c125288

Please sign in to comment.