Skip to content

Commit 38f46ab

Browse files
committed
Use Github Actions instead of Travis
1 parent 8e8be2c commit 38f46ab

File tree

4 files changed

+59
-42
lines changed

4 files changed

+59
-42
lines changed

.github/dependabot.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,7 @@ updates:
66
interval: daily
77
time: "04:00"
88
open-pull-requests-limit: 10
9-
ignore:
10-
- dependency-name: ex_doc
11-
versions:
12-
- 0.24.0
13-
- 0.24.1
14-
- dependency-name: timex
15-
versions:
16-
- 3.7.1
17-
- 3.7.3
9+
- package-ecosystem: "github-actions"
10+
directory: "/"
11+
schedule:
12+
interval: monthly

.github/workflows/ci.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Test
2+
3+
on: push
4+
5+
env:
6+
MIX_ENV: test
7+
OTP_VER: '26.1'
8+
ELIXIR_VER: '1.16.1'
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
with:
16+
# set fetch-depth to 0 for "git describe --tags" to work
17+
fetch-depth: 0
18+
- name: Setup Erlang/Elixir
19+
uses: erlef/setup-beam@v1
20+
with:
21+
otp-version: ${{ env.OTP_VER }}
22+
elixir-version: ${{ env.ELIXIR_VER }}
23+
version-type: strict
24+
25+
- name: Cache plt
26+
uses: actions/cache@v4
27+
with:
28+
path: |
29+
~/.mix
30+
_build/dev
31+
_build/test
32+
!_build/dev/lib
33+
!_build/test/lib
34+
key: plt_erlang-${{ env.OTP_VER }}_elixir-${{ env.ELIXIR_VER }}
35+
restore-keys: plt_erlang-${{ env.OTP_VER }}_elixir-${{ env.ELIXIR_VER }}
36+
37+
- name: Get dependencies
38+
run: mix deps.get
39+
40+
- name: Compile
41+
run: mix compile
42+
43+
- name: Test
44+
run: mix test
45+
46+
- name: Credo
47+
run: mix credo --ignore todo
48+
49+
- name: Run dialyzer
50+
run: mix dialyzer
51+
52+
- name: Build docs
53+
run: mix docs

.travis.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

mix.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ defmodule Panoramix.MixProject do
4646
{:jason, "~> 1.1"},
4747
{:httpoison, "~> 1.0 or ~> 2.0"},
4848
{:timex, "~> 3.1"},
49-
{:dialyxir, "~> 1.0-rc.3", only: [:dev], runtime: false},
49+
{:dialyxir, "~> 1.0", only: [:dev, :test], runtime: false},
5050
{:credo, "~> 1.7.0", only: [:dev, :test], runtime: false},
51-
{:ex_doc, "~> 0.37.0", only: :dev, runtime: false}
51+
{:ex_doc, "~> 0.37.0", only: [:dev, :test], runtime: false}
5252
]
5353
end
5454
end

0 commit comments

Comments
 (0)