Skip to content

GitHub actions #370

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 46 commits into from
Mar 22, 2023
Merged

GitHub actions #370

merged 46 commits into from
Mar 22, 2023

Conversation

joeapearson
Copy link
Contributor

@joeapearson joeapearson commented Sep 27, 2021

  • Matrix github actions
  • Add credo for linting
  • Mix format
  • Add docker compose for mongo, including replicaset support

I've added support for matrix builds. Currently there is only one combination:

  1. Ubuntu latest
  2. MongoDB 4.4
  3. Elixir 1.12.3
  4. OTP 24.0.6

We can add more combinations later.

@scottmessinger
Copy link
Collaborator

I'm really excited about this!

For our app, we've been using this to start mongodb:


      - name: Start MongoDB
        uses: supercharge/[email protected]
        with:
          mongodb-version: 4.0.27
          mongodb-replica-set: "replica-set"

I'm wondering if this might help solve the problem where the tests are failing b/c they can't connect to Mongodb.

@joeapearson
Copy link
Contributor Author

I'm really excited about this!

Thanks I am too! I think it's going to help us a lot to accept changes going forward.

I'm wondering if this might help solve the problem where the tests are failing b/c they can't connect to Mongodb.

That might be the way we have to go.

For now I'm trying to go down the docker-compose approach because then there is a guaranteed identical environment in dev and CI.

I've nearly got it running on my machine (most of the tests pass too!).

It looks like:

  1. SSL tests are always disabled in test. Let's fix this one day. I propose not to fix this in this branch and create a separate issue.
  2. Docker test are always disabled in test. Similarly, I think this could be fixed in a separate issue but is less important IMO.

I'd like to report test coverage out too but that'll be a separate effort.

@joeapearson joeapearson mentioned this pull request Sep 28, 2021
6 tasks
@joeapearson
Copy link
Contributor Author

For our app, we've been using this to start mongodb:

Scott FYI I tried this and it did get further but since the supercharge action only creates a single member replicaset some of the tests that exercise different write concerns won't work.

@ankhers
Copy link
Collaborator

ankhers commented Sep 30, 2021 via email

@ankhers
Copy link
Collaborator

ankhers commented Sep 30, 2021 via email

@joeapearson
Copy link
Contributor Author

A simple first step could be to decide the upper and lower bounds of both Elixir and OTP versions you want to test against

Yes agreed. Again my preference is to start as basic as possible and then gradually expand our "official support" as we get used to taking care of this repo. I started a discussion about that in #372 .

Thanks very much for the unexpected code review by the way, it was my understanding that you'd preferred to put the mongo work down for now otherwise I would have asked you directly.

@joeapearson
Copy link
Contributor Author

This is fair. I believe there was one in the past but it may be gone now. I think the number of people developing on windows is fairly low as is.

I'm on a mac but when I have had to use Windows it's maddening to find that it's not been properly taken care of. I think this should be a separate issue though.

@ankhers
Copy link
Collaborator

ankhers commented Sep 30, 2021 via email

@YasirAsar
Copy link

I'm so happy to see this repo active after long time. Thanks guys!!!

@scottmessinger
Copy link
Collaborator

@joeapearson I just cut a release! https://hex.pm/packages/mongodb/1.0.0-beta.1

The next step is to get this in before we hit 1.0.0.

@etroynov
Copy link

@joeapearson

any news?

@scottmessinger scottmessinger merged commit 9f0ce50 into master Mar 22, 2023
@scottmessinger
Copy link
Collaborator

@etroynov It's shipped!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants