File tree Expand file tree Collapse file tree 2 files changed +48
-2
lines changed Expand file tree Collapse file tree 2 files changed +48
-2
lines changed Original file line number Diff line number Diff line change 1- # create this in .github/workflows/ci.yml
21name : " Compile"
32on :
43 workflow_dispatch :
@@ -16,7 +15,7 @@ permissions:
1615 contents : write
1716
1817jobs :
19- precompile :
18+ compile :
2019 runs-on : ${{ matrix.os }}
2120 name : OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}} / ${{matrix.os}}
2221 strategy :
Original file line number Diff line number Diff line change 1+ name : " Test/Format/Security Check"
2+ on :
3+ workflow_dispatch :
4+ pull_request :
5+ push :
6+
7+ env :
8+ CI : true
9+ MIX_ENV : " test"
10+
11+
12+ permissions :
13+ contents : write
14+
15+ jobs :
16+ test :
17+ runs-on : ${{ matrix.os }}
18+ name : Test - OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}} / ${{matrix.os}}
19+ strategy :
20+ matrix :
21+ os : [ubuntu-latest, windows-latest]
22+ otp : ['27.2.1']
23+ elixir : ['1.18.2']
24+ rebar3 : ['3.24.0']
25+ steps :
26+ - uses : actions/checkout@v4
27+ - uses : erlef/setup-beam@v1
28+ with :
29+ otp-version : ${{matrix.otp}}
30+ elixir-version : ${{matrix.elixir}}
31+ - uses : ilammy/msvc-dev-cmd@v1
32+ if : startsWith(${{matrix.os}}, 'windows')
33+ with :
34+ arch : x64
35+ - name : Install dependencies
36+ run : mix deps.get
37+ - name : Remove compiled application files
38+ run : mix clean
39+ - name : Compile & lint dependencies
40+ run : mix compile --warnings-as-errors
41+ - name : Run tests
42+ run : mix test
43+ - name : Check Formatting
44+ run : mix format --check-formatted
45+ - name : Check Security
46+ run : mix sobelow --config
47+
You can’t perform that action at this time.
0 commit comments