Skip to content

Commit 5ba7f23

Browse files
authored
chore: add CI (#40)
1 parent f79e4ed commit 5ba7f23

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/ci.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
6+
name: Test
7+
8+
on:
9+
push:
10+
branches: ["main"]
11+
pull_request:
12+
13+
permissions:
14+
contents: read
15+
16+
jobs:
17+
build:
18+
name: Build and test
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
25+
- name: Set up Elixir
26+
uses: erlef/setup-beam@v1
27+
with:
28+
elixir-version: "1.18.3"
29+
otp-version: "27"
30+
- name: Restore dependencies cache
31+
uses: actions/cache@v3
32+
with:
33+
path: deps
34+
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
35+
restore-keys: ${{ runner.os }}-mix-
36+
- name: Install dependencies
37+
run: mix deps.get
38+
- name: Run tests
39+
run: mix test
40+
- name: Format
41+
run: mix format --check-formatted

0 commit comments

Comments
 (0)