Skip to content

Commit 4f7c3e0

Browse files
authored
Merge pull request #3 from mixi-m/work/add-github-actions
Use Github Actions instead of Travis CI
2 parents f9859f3 + 54bf9b7 commit 4f7c3e0

File tree

3 files changed

+58
-13
lines changed

3 files changed

+58
-13
lines changed

.github/workflows/ci.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: CI
2+
on: [push, pull_request]
3+
4+
jobs:
5+
build:
6+
name: Build and test
7+
runs-on: ubuntu-20.04
8+
env:
9+
MIX_ENV: test
10+
# see https://hexdocs.pm/elixir/compatibility-and-deprecations.html#between-elixir-and-erlang-otp
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
include:
15+
- elixir: 1.17.x
16+
otp: 27.x
17+
lint: true
18+
- elixir: 1.17.x
19+
otp: 25.x
20+
- elixir: 1.16.x
21+
otp: 26.x
22+
- elixir: 1.16.x
23+
otp: 24.x
24+
- elixir: 1.15.x
25+
otp: 26.x
26+
- elixir: 1.15.x
27+
otp: 24.x
28+
- elixir: 1.14.x
29+
otp: 25.x
30+
- elixir: 1.14.x
31+
otp: 23.x
32+
- elixir: 1.13.x
33+
otp: 24.x
34+
- elixir: 1.13.x
35+
otp: 22.x
36+
- elixir: 1.12.x
37+
otp: 24.x
38+
- elixir: 1.12.x
39+
otp: 22.x
40+
- elixir: 1.11.x
41+
otp: 23.x
42+
- elixir: 1.11.x
43+
otp: 21.x
44+
steps:
45+
- uses: actions/checkout@v4
46+
- uses: erlef/setup-beam@v1
47+
with:
48+
elixir-version: ${{ matrix.elixir }}
49+
otp-version: ${{ matrix.otp }}
50+
- run: mix deps.get
51+
- run: mix deps.compile
52+
- run: mix compile --warnings-as-errors
53+
if: ${{ matrix.lint }}
54+
- run: mix format --check-formatted
55+
if: ${{ matrix.lint }}
56+
- run: mix deps.unlock --check-unused
57+
if: ${{ matrix.lint }}
58+
- run: mix test

.travis.yml

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

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
[Looking for maintainer](https://github.com/vic/params/issues/new?title=Becoming%20a%20maintainer)
44

5-
[![Build Status](https://travis-ci.org/vic/params.svg?branch=master)](https://travis-ci.org/vic/params)
65
[![Hex Version](https://img.shields.io/hexpm/v/params.svg)](https://hex.pm/packages/params)
76
[![Hex Docs](https://img.shields.io/badge/hex-docs-lightgreen.svg)](https://hexdocs.pm/params/)
87
[![Total Download](https://img.shields.io/hexpm/dt/params.svg)](https://hex.pm/packages/params)

0 commit comments

Comments
 (0)