-
-
Notifications
You must be signed in to change notification settings - Fork 2
66 lines (64 loc) · 1.88 KB
/
elixir.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Build & Tests
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
run-test:
name: Build and test
runs-on: ubuntu-latest
env:
MIX_ENV: test
container:
image: elixir:1.14.4-alpine
services:
ravendb:
image: ravendb/ravendb
ports:
- 8080:8080
env:
RAVEN_Setup_Mode: "None"
RAVEN_License_Eula_Accepted: "true"
RAVEN_Security_UnsecuredAccessAllowed: "PublicNetwork"
steps:
- uses: technote-space/auto-cancel-redundant-job@v1
with:
EXCLUDE_MERGED: "true"
- name: Install Git/Curl/GNU Tar
run: apk add --no-cache curl tar git make gcc libc-dev g++
- name: Fix git permissions
run: git config --global --add safe.directory /__w/ravix-ecto/ravix-ecto
- uses: actions/checkout@v3
- name: Install Git client
run: apk add --no-cache git
- name: Build & Deps Cache
uses: actions/cache@v3
id: mix-deps
with:
path: |
_build
deps
key: ${{ runner.os }}-01-build-${{ hashFiles('mix.lock') }}
restore-keys: |
${{ runner.os }}-01-build-${{ hashFiles('mix.lock') }}
${{ runner.os }}-01-build-
# - name: Dyalizer Cache
# uses: actions/cache@v3
# id: mix-dialyzer
# with:
# path: priv/plts
# key: ${{ runner.os }}-01-dialyzer
# restore-keys: |
# ${{ runner.os }}-01-dialyzer
- name: Instal Mix and Rebar
run: mix local.hex --force && mix local.rebar --force
- name: Install dependencies
run: mix deps.get
# - name: Run Dialyzer
# run: mix dialyzer
- name: Run tests
env:
RAVENDB_URL: "http://ravendb:8080"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: mix coveralls.github