Skip to content

Commit

Permalink
Merge pull request #3 from mixi-m/work/add-github-actions
Browse files Browse the repository at this point in the history
Use Github Actions instead of Travis CI
  • Loading branch information
k-asm authored Jun 14, 2024
2 parents f9859f3 + 54bf9b7 commit 4f7c3e0
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 13 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: CI
on: [push, pull_request]

jobs:
build:
name: Build and test
runs-on: ubuntu-20.04
env:
MIX_ENV: test
# see https://hexdocs.pm/elixir/compatibility-and-deprecations.html#between-elixir-and-erlang-otp
strategy:
fail-fast: false
matrix:
include:
- elixir: 1.17.x
otp: 27.x
lint: true
- elixir: 1.17.x
otp: 25.x
- elixir: 1.16.x
otp: 26.x
- elixir: 1.16.x
otp: 24.x
- elixir: 1.15.x
otp: 26.x
- elixir: 1.15.x
otp: 24.x
- elixir: 1.14.x
otp: 25.x
- elixir: 1.14.x
otp: 23.x
- elixir: 1.13.x
otp: 24.x
- elixir: 1.13.x
otp: 22.x
- elixir: 1.12.x
otp: 24.x
- elixir: 1.12.x
otp: 22.x
- elixir: 1.11.x
otp: 23.x
- elixir: 1.11.x
otp: 21.x
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.otp }}
- run: mix deps.get
- run: mix deps.compile
- run: mix compile --warnings-as-errors
if: ${{ matrix.lint }}
- run: mix format --check-formatted
if: ${{ matrix.lint }}
- run: mix deps.unlock --check-unused
if: ${{ matrix.lint }}
- run: mix test
12 changes: 0 additions & 12 deletions .travis.yml

This file was deleted.

1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

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

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

0 comments on commit 4f7c3e0

Please sign in to comment.