File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change 1+ # .github/workflows/ci.yml
2+
3+ name : CI
4+
5+ on :
6+ push :
7+ branches :
8+ - main
9+ pull_request :
10+ branches :
11+ - main
12+
13+ jobs :
14+ build :
15+ runs-on : ubuntu-latest
16+ steps :
17+ - name : Check out the code
18+ uses : actions/checkout@v3
19+
20+ - name : Set up Elixir
21+ uses : erlef/setup-beam@v1
22+ with :
23+ elixir-version : ' 1.17'
24+ otp-version : ' 27'
25+
26+ - name : Install dependencies
27+ run : mix deps.get
28+
29+ - name : Check code formatting
30+ run : mix format --check-formatted
31+
32+ - name : Run Credo for linting
33+ run : mix credo --strict
34+
35+ - name : Run Dialyzer for type checking
36+ run : |
37+ mix dialyzer --plt || mix dialyzer
38+ env :
39+ MIX_ENV : dev # Ensure Dialyzer uses the dev environment
40+
41+ - name : Run tests
42+ run : mix test
You can’t perform that action at this time.
0 commit comments