File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,66 +2,13 @@ name: CI
22
33on :
44 push :
5- branches : [master]
5+ branches : [master, main ]
66 pull_request :
7- branches : [master]
7+ branches : [master, main ]
88
9- jobs :
10- test :
11- runs-on : ubuntu-latest
12-
13- strategy :
14- matrix :
15- include :
16- - elixir : ' 1.19'
17- otp : ' 27'
18- - elixir : ' 1.20'
19- otp : ' 29'
20-
21- steps :
22- - uses : actions/checkout@v4
23-
24- - uses : erlef/setup-beam@v1
25- with :
26- elixir-version : ${{ matrix.elixir }}
27- otp-version : ${{ matrix.otp }}
28-
29- - name : Restore dependencies cache
30- uses : actions/cache@v4
31- with :
32- path : deps
33- key : ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
34- restore-keys : ${{ runner.os }}-mix-
35-
36- - name : Install dependencies
37- run : mix deps.get
38-
39- - name : Run tests
40- run : mix test
9+ permissions :
10+ contents : read
4111
42- lint :
43- runs-on : ubuntu-latest
44-
45- steps :
46- - uses : actions/checkout@v4
47-
48- - uses : erlef/setup-beam@v1
49- with :
50- elixir-version : ' 1.20'
51- otp-version : ' 29'
52-
53- - name : Restore dependencies cache
54- uses : actions/cache@v4
55- with :
56- path : deps
57- key : ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
58- restore-keys : ${{ runner.os }}-mix-
59-
60- - name : Install dependencies
61- run : mix deps.get
62-
63- - name : Check formatting
64- run : mix format --check-formatted
65-
66- - name : Compile with warnings as errors
67- run : mix compile --warnings-as-errors
12+ jobs :
13+ ci :
14+ uses : elixir-vibe/actions/.github/workflows/elixir-ci.yml@v1
You can’t perform that action at this time.
0 commit comments