forked from kommitters/stellar_sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (43 loc) · 1.08 KB
/
ci.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
name: StellarSDK CI
on:
push:
branches:
- main
- 'v*.[0-9]'
pull_request:
jobs:
tests:
name: Run tests
runs-on: ubuntu-latest
strategy:
matrix:
otp: ['22.3', '23.3']
elixir: ['1.10', '1.11']
env:
MIX_ENV: test
steps:
- uses: actions/checkout@v3
- uses: erlef/setup-elixir@v1
with:
otp-version: ${{ matrix.otp }}
elixir-version: ${{ matrix.elixir }}
- uses: actions/cache@v3
with:
path: deps
key: ${{ runner.os }}-mix-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
restore-keys: |
${{ runner.os }}-mix-
- name: Install Dependencies
run: |
rm -rf deps _build
mix deps.get
- name: Check Formatting
run: mix format --check-formatted
- name: Run Tests
run: mix test
- name: Run Credo
run: mix credo --strict
# - name: Run Excoveralls
# run: mix coveralls.github
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}