Skip to content

Commit

Permalink
Swtich to Github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtimberlake committed Jun 8, 2022
1 parent 537f992 commit f68b655
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 20 deletions.
63 changes: 63 additions & 0 deletions .github/workflows/elixir.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Elixir CI

on:
push:
branches: [master]
pull_request:
branches: [master]

env:
MIX_ENV: test

jobs:
build:
name: Build and test
runs-on: ubuntu-latest

strategy:
matrix:
elixir: [1.9.4, 1.10.4, 1.11.4, 1.12.3, 1.13.0]
erlang: [20.3, 21.3, 22.3, 23.3, 24.1]
exclude:
- elixir: 1.9.4
erlang: 23.3
- elixir: 1.9.4
erlang: 24.1
- elixir: 1.10.4
erlang: 20.3
- elixir: 1.10.4
erlang: 23.3
- elixir: 1.10.4
erlang: 24.1
- elixir: 1.11.4
erlang: 20.3
- elixir: 1.11.4
erlang: 24.1
- elixir: 1.12.3
erlang: 20.3
- elixir: 1.12.3
erlang: 21.3
- elixir: 1.13.0
erlang: 20.3
- elixir: 1.13.0
erlang: 21.3

steps:
- name: Install image packages
run: sudo apt-get install -y imagemagick ghostscript
- uses: actions/checkout@v2
- name: Set up Elixir
uses: erlef/setup-beam@988e02bfe678367a02564f65ca2e37726dc0268f
with:
elixir-version: ${{ matrix.elixir }}
otp-version: ${{ matrix.erlang }}
- name: Restore dependencies cache
uses: actions/cache@v2
with:
path: deps
key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-${{ hashFiles('**/mix.lock') }}
restore-keys: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-mix-
- name: Install dependencies
run: mix deps.get
- name: Run tests
run: mix test
19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

1 change: 0 additions & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ defmodule Trunk.Mixfile do
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
{:ex_aws_s3, "~> 2.0", optional: true},
{:hackney, ">= 1.7.0", optional: true},
{:poison, ">= 3.1.0", optional: true},
{:jason, ">= 1.0.0", optional: true},
{:sweet_xml, "~> 0.6", optional: true},
{:bypass, "~> 2.0", only: :test},
Expand Down

0 comments on commit f68b655

Please sign in to comment.