forked from zookzook/elixir-mongodb-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (49 loc) · 1.36 KB
/
mongodb_driver.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Elixir CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
name: Compile and Test
timeout-minutes: 5
strategy:
matrix:
mongodb-version: ["5.0", "6.0"]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Start MongoDB
uses: supercharge/[email protected]
with:
mongodb-version: ${{ matrix.mongodb-version }}
mongodb-replica-set: rs_1
- name: Read .tool-versions
uses: marocchino/tool-versions-action@v1
id: versions
- name: Set up Elixir
uses: erlef/setup-beam@v1
with:
elixir-version: ${{steps.versions.outputs.elixir}}
otp-version: ${{ steps.versions.outputs.erlang}}
- name: Restore dependencies cache
uses: actions/cache@v2
with:
path: |
deps
_build
priv/plts
key: ${{ runner.os }}-mix-v1-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-mix-v1-
- name: Install dependencies
run: mix deps.get
- name: Run tests
run: mix test --exclude ssl --exclude socket --exclude rs_required
- name: Run Credo
run: mix credo
- name: Check Formatting
run: mix format --check-formatted
if: always()