File tree Expand file tree Collapse file tree 1 file changed +81
-0
lines changed Expand file tree Collapse file tree 1 file changed +81
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Elixir CI
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+ paths :
8+ - " .github/workflows/*"
9+ - " **/*.ex"
10+ - " **/*.exs"
11+ - " **/*.eex"
12+ - " mix.lock"
13+ - " coveralls.json"
14+ pull_request :
15+ branches :
16+ - master
17+ paths :
18+ - " .github/workflows/*"
19+ - " **/*.ex"
20+ - " **/*.exs"
21+ - " **/*.eex"
22+ - " mix.lock"
23+ - " coveralls.json"
24+
25+ jobs :
26+ lint :
27+ runs-on : ubuntu-latest
28+
29+ steps :
30+ - name : Checkout code
31+ uses : actions/checkout@v4
32+
33+ - name : Set up Elixir
34+ uses : erlef/setup-beam@v1
35+ with :
36+ otp-version : ' 27.0.1'
37+ elixir-version : ' 1.17.2'
38+
39+ - name : Restore deps cache
40+ uses : actions/cache@v4
41+ with :
42+ path : |
43+ deps
44+ _build
45+ key : ${{ runner.os }}-deps-${{ hashFiles('**/mix.lock') }}-git-${{ github.sha }}
46+ restore-keys : |
47+ ${{ runner.os }}-deps-${{ hashFiles('**/mix.lock') }}
48+ ${{ runner.os }}-deps
49+
50+ - name : Install package dependencies
51+ run : mix deps.get
52+
53+ - name : Remove compiled application files
54+ run : mix clean
55+
56+ - name : Compile dependencies
57+ run : mix compile
58+ env :
59+ MIX_ENV : test
60+
61+ - name : Run tests
62+ run : mix test --trace
63+ env :
64+ MIX_ENV : test
65+
66+ - name : Check code coverage
67+ run : mix coveralls
68+ env :
69+ MIX_ENV : test
70+
71+ - name : Upload coverage to coveralls
72+ run : mix coveralls.github
73+ env :
74+ MIX_ENV : test
75+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
76+
77+ - name : Check code formatting
78+ run : mix check
79+
80+ - name : Run Credo linter
81+ run : mix credo --strict
You can’t perform that action at this time.
0 commit comments