Skip to content

Commit 15cf7c6

Browse files
committed
#6 Added CI workflow for kickoff.
1 parent 6803595 commit 15cf7c6

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/ci.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# .github/workflows/ci.yml
2+
3+
name: CI
4+
5+
on:
6+
push:
7+
branches:
8+
- main
9+
pull_request:
10+
branches:
11+
- main
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Check out the code
18+
uses: actions/checkout@v3
19+
20+
- name: Set up Elixir
21+
uses: erlef/setup-beam@v1
22+
with:
23+
elixir-version: '1.17'
24+
otp-version: '27'
25+
26+
- name: Install dependencies
27+
run: mix deps.get
28+
29+
- name: Check code formatting
30+
run: mix format --check-formatted
31+
32+
- name: Run Credo for linting
33+
run: mix credo --strict
34+
35+
- name: Run Dialyzer for type checking
36+
run: |
37+
mix dialyzer --plt || mix dialyzer
38+
env:
39+
MIX_ENV: dev # Ensure Dialyzer uses the dev environment
40+
41+
- name: Run tests
42+
run: mix test

0 commit comments

Comments
 (0)