Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

Add GitHub workflow code #2

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/elixir.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Elixir CI

on: push

jobs:
build:

runs-on: ubuntu-latest

container:
image: elixir:1.10.0
env:
MIX_ENV: test

steps:
- uses: actions/checkout@v1
- name: Install Dependencies
run: |
echo "deb http://deb.debian.org/debian stretch-backports main" | tee -a /etc/apt/sources.list
echo "deb-src http://deb.debian.org/debian stretch-backports main" | tee -a /etc/apt/sources.list
apt-get update
apt-get -t stretch-backports install -y libsodium23 libsodium-dev
mix local.rebar --force
mix local.hex --force
mix deps.get && mix deps.compile
- name: Run Tests
run: |
mix db.reset
mix test
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ defmodule Sailor.MixProject do
{:salty, "~> 0.1.3", git: "https://github.com/the-kenny/libsalty.git", branch: "add-ed-to-curve-conversion-functions"},
{:jason, "~> 1.1"},
{:jsone, "~> 1.5"},
{:exqlite, git: "git@github.com:the-kenny/exqlite.git"},
{:exqlite, git: "https://github.com/the-kenny/exqlite.git"},
{:gen_stage, "~> 0.14.2"},

{:credo, "~> 1.0.0", only: [:dev, :test], runtime: false},
Expand Down
2 changes: 1 addition & 1 deletion mix.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"db_connection": {:hex, :db_connection, "2.2.1", "caee17725495f5129cb7faebde001dc4406796f12a62b8949f4ac69315080566", [:mix], [{:connection, "~> 1.0.2", [hex: :connection, repo: "hexpm", optional: false]}], "hexpm"},
"elixir_make": {:hex, :elixir_make, "0.6.0", "38349f3e29aff4864352084fc736fa7fa0f2995a819a737554f7ebd28b85aaab", [:mix], [], "hexpm"},
"esqlite": {:hex, :esqlite, "0.4.0", "8d0b88a774dceaec4fff0a6f63248efe811684591f186b6b21d4390be19bf1db", [:rebar3], [], "hexpm"},
"exqlite": {:git, "git@github.com:the-kenny/exqlite.git", "a3636943d3ed5254212847b548622ceab33c79f2", []},
"exqlite": {:git, "https://github.com/the-kenny/exqlite.git", "a3636943d3ed5254212847b548622ceab33c79f2", []},
"gen_stage": {:hex, :gen_stage, "0.14.3", "d0c66f1c87faa301c1a85a809a3ee9097a4264b2edf7644bf5c123237ef732bf", [:mix], [], "hexpm"},
"jason": {:hex, :jason, "1.1.2", "b03dedea67a99223a2eaf9f1264ce37154564de899fd3d8b9a21b1a6fd64afe7", [:mix], [{:decimal, "~> 1.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm"},
"jsone": {:hex, :jsone, "1.5.2", "87adea283c9cf24767b4deed44602989a5331156df5d60a2660e9c9114d54046", [:rebar3], [], "hexpm"},
Expand Down