@@ -11,20 +11,14 @@ permissions:
11
11
jobs :
12
12
ensure_code_consistency :
13
13
runs-on : ubuntu-latest
14
- name : Test on OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
15
- strategy :
16
- # Specify the OTP and Elixir versions to use when building
17
- # and running the workflow steps.
18
- matrix :
19
- otp : ["26.2.3"] # Define the OTP version [required]
20
- elixir : ["1.16.2"] # Define the elixir version [required]
14
+ name : Ensure code consistency
21
15
steps :
22
16
# Step: Setup Elixir + Erlang image as the base.
23
17
- name : Set up Elixir
24
18
uses : erlef/setup-beam@v1
25
19
with :
26
- otp-version : ${{matrix.otp}}
27
- elixir-version : ${{matrix.elixir}}
20
+ otp-version : " 26.2.3 "
21
+ elixir-version : " 1.16.2 "
28
22
29
23
# Step: Check out the code.
30
24
- name : Checkout code
@@ -79,14 +73,18 @@ jobs:
79
73
- name : Compiles without warnings
80
74
run : mix compile --warnings-as-errors
81
75
82
- # Step: Check that the checked in code has already been formatted.
76
+ # Step: Check that the code has already been formatted.
83
77
- name : Check Formatting
84
78
run : mix format --check-formatted
85
79
86
- # Step: Check that the checked in code complies with the credo rules.
80
+ # Step: Check that the code complies with the credo rules.
87
81
- name : Check Credo
88
82
run : mix credo -A
89
83
84
+ # Step: Check that the documentation complies with the doctor rules.
85
+ - name : Check Doctor
86
+ run : mix doctor
87
+
90
88
test :
91
89
# Set up a Postgres DB service. By default, Phoenix applications
92
90
# use Postgres. This creates a database for running tests.
@@ -107,20 +105,14 @@ jobs:
107
105
--health-retries 5
108
106
109
107
runs-on : ubuntu-latest
110
- name : Test on OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
111
- strategy :
112
- # Specify the OTP and Elixir versions to use when building
113
- # and running the workflow steps.
114
- matrix :
115
- otp : ["26.2.3"] # Define the OTP version [required]
116
- elixir : ["1.16.2"] # Define the elixir version [required]
108
+ name : Unit Tests
117
109
steps :
118
110
# Step: Setup Elixir + Erlang image as the base.
119
111
- name : Set up Elixir
120
112
uses : erlef/setup-beam@v1
121
113
with :
122
- otp-version : ${{matrix.otp}}
123
- elixir-version : ${{matrix.elixir}}
114
+ otp-version : " 26.2.3 "
115
+ elixir-version : " 1.16.2 "
124
116
125
117
# Step: Check out the code.
126
118
- name : Checkout code
0 commit comments