Skip to content

Commit cef029f

Browse files
committed
Add basic gh actions config
1 parent d992204 commit cef029f

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Continuous integration
2+
on:
3+
push:
4+
branches: ["*"]
5+
tags: ["v*"]
6+
pull_request:
7+
branches: ["develop"]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
include:
16+
# This is what Travis runs.
17+
- elixir-version: "1.9"
18+
otp-version: "20.3"
19+
# Let's worry about updates later.
20+
# - elixir-version: "1.17"
21+
# otp-version: "27"
22+
23+
steps:
24+
- uses: actions/checkout@v4
25+
- uses: erlef/setup-beam@v1
26+
id: beam
27+
with:
28+
elixir-version: ${{ matrix.elixir-version }}
29+
otp-version: ${{ matrix.otp-version }}
30+
31+
- name: Fetch deps
32+
run: |
33+
mix deps.get
34+
35+
- name: Run tests
36+
run: |
37+
# This is basically `mix test` with coverage enabled.
38+
mix coveralls.json
39+
mix format --check-formatted
40+
# This will mention FIXME and TODO comments without failing, any
41+
# other issue fails the build.
42+
mix credo

0 commit comments

Comments
 (0)