diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 23163dfd..00000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,22 +0,0 @@ -# Elixir CircleCI 2.0 configuration file -# -# Check https://circleci.com/docs/2.0/language-elixir/ for more details -version: 2 -jobs: - build: - docker: - # specify the version here - - image: elixir:1.14 - - working_directory: ~/repo - steps: - - checkout - - # specify any bash command here prefixed with `run: ` - - run: mix local.hex --force - - run: mix local.rebar --force - - run: mix deps.get - - run: mix format --check-formatted - - run: MIX_ENV=test mix compile --warnings-as-errors - - run: MIX_ENV=test mix test --trace - - run: MIX_ENV=test mix coveralls.circle \ No newline at end of file diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ef03fad5..1c21df16 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -6,8 +6,7 @@ on: - master pull_request: branches: - - master - - gh_actions + - '*' jobs: build: @@ -15,23 +14,16 @@ jobs: steps: - name: Checkout Repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 + - name: Setup Elixir - uses: actions/setup-elixir@v1 + uses: erlef/setup-beam@v1 with: - elixir-version: 1.14 - - - name: Install Dependencies - run: | - mix local.hex --force - mix local.rebar --force - mix deps.get - - - name: Check Code Formatting - run: mix format --check-formatted + otp-version: "24.2.1" + elixir-version: "1.14.0" - - name: Compile and Test - run: | - MIX_ENV=test mix compile --warnings-as-errors - MIX_ENV=test mix test --trace \ No newline at end of file + - run: mix deps.get + - run: mix compile --all-warnings --warnings-as-errors + - run: mix format --check-formatted + - run: mix test \ No newline at end of file diff --git a/mix.exs b/mix.exs index 879023ba..b5d6a77b 100644 --- a/mix.exs +++ b/mix.exs @@ -46,11 +46,10 @@ defmodule Crawly.Mixfile do # Run "mix help deps" to learn about dependencies. defp deps do [ - {:httpoison, "~> 2.2"}, + {:httpoison, "~> 1.7"}, {:elixir_uuid, "~> 1.2"}, {:poison, "~> 3.1"}, - {:gollum, path: "/Users/oleg/repos/gollum"}, - # {:gollum, "~> 0.4.0", hex: :new_gollum}, + {:gollum, "~> 0.4.0", hex: :new_gollum}, {:plug_cowboy, "~> 2.0"}, {:credo, "~> 1.5.0", only: [:dev, :test], runtime: false}, {:ex_doc, ">= 0.0.0", only: :dev, runtime: false}, diff --git a/mix.lock b/mix.lock index 4ef4a550..a75cdff4 100644 --- a/mix.lock +++ b/mix.lock @@ -18,7 +18,7 @@ "gollum": {:hex, :new_gollum, "0.4.0", "89e3e2fc5abd032455341c4a03bcef7042b8d08e02c51df24b99a1a0a1ad69b1", [:mix], [{:httpoison, "~> 1.7", [hex: :httpoison, repo: "hexpm", optional: false]}], "hexpm", "85c68465e8678637638656945677062a4e7086e91a04d5c4bca1027321c74582"}, "hackney": {:hex, :hackney, "1.20.1", "8d97aec62ddddd757d128bfd1df6c5861093419f8f7a4223823537bad5d064e2", [:rebar3], [{:certifi, "~> 2.12.0", [hex: :certifi, repo: "hexpm", optional: false]}, {:idna, "~> 6.1.0", [hex: :idna, repo: "hexpm", optional: false]}, {:metrics, "~> 1.0.0", [hex: :metrics, repo: "hexpm", optional: false]}, {:mimerl, "~> 1.1", [hex: :mimerl, repo: "hexpm", optional: false]}, {:parse_trans, "3.4.1", [hex: :parse_trans, repo: "hexpm", optional: false]}, {:ssl_verify_fun, "~> 1.1.0", [hex: :ssl_verify_fun, repo: "hexpm", optional: false]}, {:unicode_util_compat, "~> 0.7.0", [hex: :unicode_util_compat, repo: "hexpm", optional: false]}], "hexpm", "fe9094e5f1a2a2c0a7d10918fee36bfec0ec2a979994cff8cfe8058cd9af38e3"}, "html_entities": {:hex, :html_entities, "0.5.2", "9e47e70598da7de2a9ff6af8758399251db6dbb7eebe2b013f2bbd2515895c3c", [:mix], [], "hexpm", "c53ba390403485615623b9531e97696f076ed415e8d8058b1dbaa28181f4fdcc"}, - "httpoison": {:hex, :httpoison, "2.2.0", "839298929243b872b3f53c3693fa369ac3dbe03102cefd0a126194738bf4bb0e", [:mix], [{:hackney, "~> 1.17", [hex: :hackney, repo: "hexpm", optional: false]}], "hexpm", "a49a9337c2b671464948a00cff6a882d271c1c8e3d25a6ca14d0532cbd23f65a"}, + "httpoison": {:hex, :httpoison, "1.8.2", "9eb9c63ae289296a544842ef816a85d881d4a31f518a0fec089aaa744beae290", [:mix], [{:hackney, "~> 1.17", [hex: :hackney, repo: "hexpm", optional: false]}], "hexpm", "2bb350d26972e30c96e2ca74a1aaf8293d61d0742ff17f01e0279fef11599921"}, "idna": {:hex, :idna, "6.1.1", "8a63070e9f7d0c62eb9d9fcb360a7de382448200fbbd1b106cc96d3d8099df8d", [:rebar3], [{:unicode_util_compat, "~>0.7.0", [hex: :unicode_util_compat, repo: "hexpm", optional: false]}], "hexpm", "92376eb7894412ed19ac475e4a86f7b413c1b9fbb5bd16dccd57934157944cea"}, "jason": {:hex, :jason, "1.4.0", "e855647bc964a44e2f67df589ccf49105ae039d4179db7f6271dfd3843dc27e6", [:mix], [{:decimal, "~> 1.0 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm", "79a3791085b2a0f743ca04cec0f7be26443738779d09302e01318f97bdb82121"}, "logger_file_backend": {:hex, :logger_file_backend, "0.0.12", "5afaa76a0cb6123cd19900c0f414044cfc46c24c6a1b80842a9b0e7f6c755e57", [:mix], [], "hexpm", "7335cc4e186a3804f9d3651f2fb42243a11748f1e384421bdd17623ed53fed79"},