Skip to content

Commit 6fd4cd3

Browse files
authored
create mix test workflow with github action
1 parent 72554f5 commit 6fd4cd3

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

Diff for: .github/workflows/elixir.yml

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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: Elixir CI
7+
8+
on:
9+
push:
10+
branches:
11+
- "main"
12+
- "dev"
13+
pull_request:
14+
branches:
15+
- "main"
16+
17+
permissions:
18+
contents: read
19+
20+
jobs:
21+
build:
22+
23+
name: Build and test
24+
runs-on: ubuntu-latest
25+
26+
steps:
27+
- uses: actions/checkout@v3
28+
- name: Set up Elixir
29+
uses: erlef/setup-beam@61e01a43a562a89bfc54c7f9a378ff67b03e4a21 # v1.16.0
30+
with:
31+
elixir-version: '1.16'
32+
otp-version: '26'
33+
- name: Restore dependencies cache
34+
uses: actions/cache@v3
35+
with:
36+
path: deps
37+
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
38+
restore-keys: ${{ runner.os }}-mix-
39+
- name: Install dependencies
40+
run: mix deps.get
41+
- name: Run ArangoDB containers
42+
run: docker compose up --detach --wait --wait-timeout 45
43+
- name: Run tests
44+
run: mix test

0 commit comments

Comments
 (0)