More flexible mongodb_driver version #50
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
- push | |
- pull_request | |
jobs: | |
codeQuality: | |
name: "Tests & Code Quality" | |
runs-on: ubuntu-20.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
otpElixir: [{ otp: "24.3.4.10", elixir: "1.14.3" }] | |
steps: | |
- name: repo checkout | |
uses: actions/checkout@v2 | |
- uses: erlef/setup-beam@v1 | |
with: | |
otp-version: ${{ matrix.otpElixir.otp }} | |
elixir-version: ${{ matrix.otpElixir.elixir }} | |
- uses: actions/cache@v2 | |
with: | |
path: | | |
deps | |
_build | |
key: ${{ runner.os }}-${{matrix.otpElixir.otp}}-${{matrix.otpElixir.elixir}}-mix-${{ hashFiles('**/mix.lock') }} | |
restore-keys: | | |
${{ runner.os }}-${{matrix.otpElixir.otp}}-${{matrix.otpElixir.elixir}}-mix-${{ hashFiles('**/mix.lock') }} | |
- run: mix deps.get | |
- run: mix credo --strict | |
continue-on-error: true | |
- run: mix format --check-formatted | |
continue-on-error: true | |
- run: mix dialyzer | |
test: | |
runs-on: ubuntu-20.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
mongodb: ["5.0", "6.0", "7.0"] | |
otpElixir: | |
[ | |
{ otp: "22.3.4.26", elixir: "1.12.3" }, | |
{ otp: "23.3.4.18", elixir: "1.13.4" }, | |
{ otp: "24.3.4.10", elixir: "1.14.3" }, | |
] | |
topology: [replica_set, server] | |
steps: | |
- name: repo checkout | |
uses: actions/checkout@v2 | |
- id: start-mongodb | |
name: start mongodb | |
uses: mongodb-labs/drivers-evergreen-tools@master | |
with: | |
version: "${{matrix.mongodb}}" | |
topology: "${{matrix.topology}}" | |
- uses: erlef/setup-beam@v1 | |
with: | |
otp-version: ${{ matrix.otpElixir.otp }} | |
elixir-version: ${{ matrix.otpElixir.elixir }} | |
- uses: actions/cache@v2 | |
with: | |
path: | | |
deps | |
_build | |
key: ${{ runner.os }}-${{matrix.otpElixir.otp}}-${{matrix.otpElixir.elixir}}-mix-${{ hashFiles('**/mix.lock') }} | |
restore-keys: | | |
${{ runner.os }}-${{matrix.otpElixir.otp}}-${{matrix.otpElixir.elixir}}-mix-${{ hashFiles('**/mix.lock') }} | |
- run: mix deps.get | |
- run: mix test | |
env: | |
MONGODB_URI: ${{ steps.start-mongodb.outputs.cluster-uri }} |