Skip to content

Commit 411edb6

Browse files
John W. DarringtonJohn W. Darrington
authored andcommitted
added output artifacts
1 parent de46013 commit 411edb6

File tree

2 files changed

+48
-2
lines changed

2 files changed

+48
-2
lines changed

.github/workflows/compile.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# create this in .github/workflows/ci.yml
21
name: "Compile"
32
on:
43
workflow_dispatch:
@@ -16,7 +15,7 @@ permissions:
1615
contents: write
1716

1817
jobs:
19-
precompile:
18+
compile:
2019
runs-on: ${{ matrix.os }}
2120
name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}} / ${{matrix.os}}
2221
strategy:
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
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+

0 commit comments

Comments
 (0)