File tree Expand file tree Collapse file tree 1 file changed +59
-0
lines changed Expand file tree Collapse file tree 1 file changed +59
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Elixir CI
2
+ on :
3
+ push :
4
+ branches :
5
+ - master
6
+ pull_request :
7
+ branches :
8
+ - master
9
+
10
+ jobs :
11
+ test :
12
+ name : Compile and Test
13
+
14
+ strategy :
15
+ matrix :
16
+ mongodb-version : ["4.4"]
17
+
18
+ runs-on : ubuntu-latest
19
+ steps :
20
+ - uses : actions/checkout@v2
21
+
22
+ - name : Start MongoDB
23
+ uses :
supercharge/[email protected]
24
+ with :
25
+ mongodb-version : ${{ matrix.mongodb-version }}
26
+ mongodb-replica-set : rs_1
27
+
28
+ - name : Read .tool-versions
29
+ uses : marocchino/tool-versions-action@v1
30
+ id : versions
31
+
32
+ - name : Set up Elixir
33
+ uses : erlef/setup-elixir@v1
34
+ with :
35
+ elixir-version : ${{steps.versions.outputs.elixir}}
36
+ otp-version : ${{ steps.versions.outputs.erlang}}
37
+
38
+ - name : Restore dependencies cache
39
+ uses : actions/cache@v2
40
+ with :
41
+ path : |
42
+ deps
43
+ _build
44
+ priv/plts
45
+ key : ${{ runner.os }}-mix-v1-${{ hashFiles('**/mix.lock') }}
46
+ restore-keys : ${{ runner.os }}-mix-v1-
47
+
48
+ - name : Install dependencies
49
+ run : mix deps.get
50
+
51
+ - name : Run tests
52
+ run : mix test --exclude ssl --exclude socket
53
+
54
+ - name : Run Credo
55
+ run : mix credo
56
+
57
+ - name : Check Formatting
58
+ run : mix format --check-formatted
59
+ if : always()
You can’t perform that action at this time.
0 commit comments