Skip to content

Commit efe1b8e

Browse files
committed
Add doctor and remove matrix runs
1 parent 40be9e5 commit efe1b8e

File tree

1 file changed

+12
-20
lines changed

1 file changed

+12
-20
lines changed

.github/workflows/check.yml

+12-20
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,14 @@ permissions:
1111
jobs:
1212
ensure_code_consistency:
1313
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
2115
steps:
2216
# Step: Setup Elixir + Erlang image as the base.
2317
- name: Set up Elixir
2418
uses: erlef/setup-beam@v1
2519
with:
26-
otp-version: ${{matrix.otp}}
27-
elixir-version: ${{matrix.elixir}}
20+
otp-version: "26.2.3"
21+
elixir-version: "1.16.2"
2822

2923
# Step: Check out the code.
3024
- name: Checkout code
@@ -79,14 +73,18 @@ jobs:
7973
- name: Compiles without warnings
8074
run: mix compile --warnings-as-errors
8175

82-
# Step: Check that the checked in code has already been formatted.
76+
# Step: Check that the code has already been formatted.
8377
- name: Check Formatting
8478
run: mix format --check-formatted
8579

86-
# Step: Check that the checked in code complies with the credo rules.
80+
# Step: Check that the code complies with the credo rules.
8781
- name: Check Credo
8882
run: mix credo -A
8983

84+
# Step: Check that the documentation complies with the doctor rules.
85+
- name: Check Doctor
86+
run: mix doctor
87+
9088
test:
9189
# Set up a Postgres DB service. By default, Phoenix applications
9290
# use Postgres. This creates a database for running tests.
@@ -107,20 +105,14 @@ jobs:
107105
--health-retries 5
108106
109107
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
117109
steps:
118110
# Step: Setup Elixir + Erlang image as the base.
119111
- name: Set up Elixir
120112
uses: erlef/setup-beam@v1
121113
with:
122-
otp-version: ${{matrix.otp}}
123-
elixir-version: ${{matrix.elixir}}
114+
otp-version: "26.2.3"
115+
elixir-version: "1.16.2"
124116

125117
# Step: Check out the code.
126118
- name: Checkout code

0 commit comments

Comments
 (0)