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

Dev #3

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

on:
push:
branches:
- master
pull_request:
workflow_call:
secrets:
HEX_API_KEY:
required: true
jobs:
test:
runs-on: ubuntu-20.04

env:
MIX_ENV: test
elixir: 1.13.2
otp: 22.2
lint: true
HEX_API_KEY: ${{ secrets.HEX_API_KEY }}

steps:
- uses: actions/checkout@v3

- uses: erlef/setup-beam@v1
with:
otp-version: 22.2
elixir-version: 1.13.2

- uses: actions/cache@v2
with:
path: |
deps
_build
key: ${{ runner.os }}-mix-${{env.elixir}}-${{env.otp}}-${{ hashFiles('**/mix.lock') }}
restore-keys: |
${{ runner.os }}-mix-

- run: mix deps.get

- run: mix format --check-formatted
if: ${{ matrix.lint }}

- run: mix deps.unlock --check-unused
if: ${{ matrix.lint }}

- run: mix deps.compile

- run: mix compile --warnings-as-errors
if: ${{ matrix.lint }}

- run: mix test

- run: mix hex.publish --yes
4 changes: 2 additions & 2 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule Simplificator3000Phoenix.MixProject do
def project do
[
app: :simplificator_3000_phoenix,
version: "1.1.1",
version: "1.1.2",
elixir: "~> 1.13",
start_permanent: Mix.env() == :prod,
name: "Simplificator3000 Phoenix",
Expand Down Expand Up @@ -51,7 +51,7 @@ defmodule Simplificator3000Phoenix.MixProject do
{:ex_doc, "~> 0.27", runtime: false},
{:plug, ">= 1.13.0", optional: true},
{:phoenix, ">= 1.6.10", optional: true},
{:simplificator_3000, "~> 0.5.2"},
{:simplificator_3000, "~> 0.5.5"},
{:tarams, "~> 1.0.0"}
]
end
Expand Down
Loading