Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rustler_mix: Fix template test on Elixir < 1.9 #269

Merged
merged 3 commits into from
Oct 29, 2019
Merged
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
24 changes: 22 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: CI

on: push
on: [push, pull_request]

jobs:
clippy:
Expand Down Expand Up @@ -50,6 +50,27 @@ jobs:
working-directory: rustler_tests
run: mix format --check-formatted

rustler_mix_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1

- name: Install Rust stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- name: Install Erlang/Elixir
uses: actions/setup-elixir@v1.0.0
with:
otp-version: 21.x
elixir-version: 1.6

- name: Test rustler_mix
working-directory: rustler_mix
run: ./test.sh

test:
name: OTP ${{matrix.pair.erlang}} / Elixir ${{matrix.pair.elixir}} / Rust ${{matrix.rust}}
runs-on: ubuntu-latest
Expand Down Expand Up @@ -108,7 +129,6 @@ jobs:
run: |
mix deps.get
mix test
./test.sh

- name: Test rustler_tests
working-directory: rustler_tests
Expand Down
4 changes: 2 additions & 2 deletions rustler_mix/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ defmodule TestRustlerMix.MixProject do
[
app: :test_rustler_mix,
version: "0.1.0",
elixir: "~> 1.9",
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
deps: deps()
]
Expand All @@ -65,7 +65,7 @@ defmodule TestRustlerMix.MixProject do
[
app: :test_rustler_mix,
version: "0.1.0",
elixir: "~> 1.9",
elixir: "~> 1.6",
start_permanent: Mix.env() == :prod,
deps: deps(),
compilers: [:rustler] ++ Mix.compilers(),
Expand Down