Skip to content

Commit

Permalink
feat: add ci
Browse files Browse the repository at this point in the history
  • Loading branch information
MikaAK committed Jul 26, 2024
1 parent 544ec73 commit 6458e2a
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/coveralls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Coveralls

on: push

jobs:
coveralls:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: |
deps
_build
key: ${{ runner.os }}-mix-coveralls-${{ hashFiles('**/mix.lock') }}
restore-keys: |
${{ runner.os }}-mix-coveralls-
- uses: erlef/setup-beam@v1
with:
otp-version: 25.1.2
elixir-version: 1.14.2
- run: mix deps.get
- run: MIX_ENV=test mix coveralls.json
- name: Upload to codecov.io
uses: codecov/codecov-action@v1

23 changes: 23 additions & 0 deletions .github/workflows/credo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Credo

on: push

jobs:
credo:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: |
deps
_build
key: ${{ runner.os }}-mix-credo-${{ hashFiles('**/mix.lock') }}
restore-keys: |
${{ runner.os }}-mix-credo-
- uses: erlef/setup-beam@v1
with:
otp-version: 25.1.2
elixir-version: 1.14.2
- run: mix deps.get
- run: mix credo
25 changes: 25 additions & 0 deletions .github/workflows/dialyzer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Dialyzer

on: push

jobs:
dialyzer:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: |
deps
_build
dialyzer
key: ${{ runner.os }}-mix-dialyzer-${{ hashFiles('**/mix.lock') }}
restore-keys: |
${{ runner.os }}-mix-dialyzer-
- uses: erlef/setup-beam@v1
with:
otp-version: 25.1.2
elixir-version: 1.14.2
- run: mix deps.get
- run: mix dialyzer

0 comments on commit 6458e2a

Please sign in to comment.