Skip to content

Commit

Permalink
Divo #48 replace TravisCI with GitHub Actions (#50)
Browse files Browse the repository at this point in the history
* added github actions to divo

#48

Co-authored-by: Saad Rasheed <saad.a.rasheed@accenture.com>
Co-authored-by: Christine Walsh <christine.poydence@gmail.com>
  • Loading branch information
3 people authored Jul 14, 2021
1 parent 2d5ffad commit 2d2a15a
Show file tree
Hide file tree
Showing 7 changed files with 63 additions and 41 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/divo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: divo
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
branches:
- master

jobs:
ci:
name: Verify Application
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-elixir@v1.5.0
with:
otp-version: 21.3
elixir-version: 1.10.4
experimental-otp: true
- name: Get dependencies
run: |
bash scripts/gh-action-get-deps.sh
- name: Run tests
run: |
bash scripts/gh-action-test.sh
24 changes: 24 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: release
on:
release:
types: [created]

jobs:
ci:
name: Publish Hex Version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-elixir@v1.5.0
with:
otp-version: 21.3
elixir-version: 1.10.4
experimental-otp: true
- name: Get dependencies
run: |
bash scripts/gh-action-get-deps.sh
- name: Build
run: |
bash scripts/deploy.sh
env:
HEX_API_KEY: ${{ secrets.HEX_API_KEY }}
37 changes: 0 additions & 37 deletions .travis.yml

This file was deleted.

5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
[![Master](https://travis-ci.org/smartcitiesdata/divo.svg?branch=master)](https://travis-ci.org/smartcitiesdata/divo)
[![Hex.pm Version](http://img.shields.io/hexpm/v/divo.svg?style=flat)](https://hex.pm/packages/divo)

# Getting Started
Expand All @@ -13,7 +12,7 @@ The package can be installed by adding `divo` to your list of dependencies in `m
```elixir
def deps() do
[
{:divo, "~> 1.1.9", only: [:dev, :integration]}
{:divo, "~> 1.3.1", only: [:dev, :integration]}
]
end
```
Expand Down Expand Up @@ -56,7 +55,7 @@ In your mix file, include the additional dependency
#mix.exs
def deps() do
[
{:divo, "~> 1.1.5", only: [:dev, :integration]},
{:divo, "~> 1.3.1", only: [:dev, :integration]},
{:divo_redis, "~> 0.1.0", only: [:dev, :integration]}
]
```
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule Divo.MixProject do
def project do
[
app: :divo,
version: "1.3.0",
version: "1.3.1",
elixir: "~> 1.8",
start_permanent: Mix.env() == :prod,
deps: deps(),
Expand Down
3 changes: 3 additions & 0 deletions scripts/gh-action-get-deps.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
mix local.rebar --force
mix local.hex --force
mix deps.get
4 changes: 4 additions & 0 deletions scripts/gh-action-test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
mix format --check-formatted
mix credo
mix hex.outdated || true
mix test

0 comments on commit 2d2a15a

Please sign in to comment.