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

Update/all the things #217

Merged
merged 3 commits into from
Jun 28, 2024
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
18 changes: 10 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,33 +7,35 @@ jobs:
name: Format and compile with warnings as errors
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.1
- uses: actions/checkout@v2

- name: Install OTP and Elixir
uses: erlef/setup-beam@v1
with:
otp-version: 25.1
elixir-version: 1.14.1
otp-version: 26.x
elixir-version: 1.16.x

- name: Install dependencies
run: mix deps.get

- name: Run "mix format"
run: mix format --check-formatted

- name: Compile with --warnings-as-errors
run: mix compile --warnings-as-errors

- name: Run "mix format"
run: mix format --check-formatted

test:
name: Test (Elixir ${{matrix.elixir}} | Erlang/OTP ${{matrix.otp}})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- otp: 25.1
elixir: 1.14.1
- otp: 26.x
elixir: 1.16.x
coverage: true
- otp: 27.x
elixir: 1.17.x
env:
MIX_ENV: test
steps:
Expand Down
4 changes: 2 additions & 2 deletions config/config.exs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use Mix.Config
import Config

if Mix.env() == :test do
if config_env() == :test do
config :exvcr,
vcr_cassette_library_dir: "test/fixture/vcr_cassettes",
custom_cassette_library_dir: "test/fixture/custom_cassettes",
Expand Down
8 changes: 4 additions & 4 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ defmodule Tentacat.Mixfile do
use Mix.Project

@source_url "https://github.com/edgurgel/tentacat"
@version "2.2.0"
@version "2.4.0"

def project do
[
app: :tentacat,
version: @version,
elixir: "~> 1.9",
elixir: "~> 1.16",
name: "Tentacat",
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [coveralls: :test, "coveralls.detail": :test, "coveralls.post": :test],
Expand All @@ -27,10 +27,10 @@ defmodule Tentacat.Mixfile do
{:httpoison, "~> 2.0"},
{:jason, "~> 1.2"},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
{:inch_ex, "~> 0.5", only: :dev},
{:inch_ex, "~> 2.0", only: :dev},
{:excoveralls, "~> 0.5", only: :test},
{:exvcr, "~> 0.10", only: :test},
{:meck, "~> 0.8.9", only: :test}
{:meck, "~> 0.9", only: :test}
]
end

Expand Down
2 changes: 1 addition & 1 deletion test/app/installations_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule Tentacat.App.InstallationsTest do
use ExUnit.Case, async: false
use ExUnit.Case, async: true
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
import Tentacat.App.Installations

Expand Down
2 changes: 1 addition & 1 deletion test/app_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule Tentacat.AppTest do
use ExUnit.Case, async: false
use ExUnit.Case, async: true
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
import Tentacat.App

Expand Down
2 changes: 1 addition & 1 deletion test/comments/reactions_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule Tentacat.Comments.ReactionsTest do
use ExUnit.Case, async: false
use ExUnit.Case, async: true
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
import Tentacat.Comments.Reactions

Expand Down
2 changes: 1 addition & 1 deletion test/commits/comments_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule Tentacat.Commits.CommentsTest do
use ExUnit.Case, async: false
use ExUnit.Case, async: true
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
import Tentacat.Commits.Comments

Expand Down
2 changes: 1 addition & 1 deletion test/commits_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule Tentacat.CommitsTest do
use ExUnit.Case, async: false
use ExUnit.Case, async: true
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
import Tentacat.Commits

Expand Down
2 changes: 1 addition & 1 deletion test/contents_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule Tentacat.ContentsTest do
use ExUnit.Case, async: false
use ExUnit.Case, async: true
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
import Tentacat.Contents

Expand Down
2 changes: 1 addition & 1 deletion test/followers_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule Tentacat.FollowersTest do
use ExUnit.Case, async: false
use ExUnit.Case, async: true
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
import Tentacat.Users.Followers

Expand Down
2 changes: 1 addition & 1 deletion test/gists_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule Tentacat.GistsTest do
use ExUnit.Case, async: false
use ExUnit.Case, async: true
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
import Tentacat.Gists

Expand Down
2 changes: 1 addition & 1 deletion test/git/blobs_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule Tentacat.Git.BlobsTest do
use ExUnit.Case, async: false
use ExUnit.Case, async: true
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
import Tentacat.Git.Blobs

Expand Down
2 changes: 1 addition & 1 deletion test/hooks_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule Tentacat.HooksTest do
use ExUnit.Case, async: false
use ExUnit.Case, async: true
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
import Tentacat.Hooks

Expand Down
2 changes: 1 addition & 1 deletion test/issues/comments/reactions_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule Tentacat.Issues.Comments.ReactionsTest do
use ExUnit.Case, async: false
use ExUnit.Case, async: true
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
import Tentacat.Issues.Comments.Reactions

Expand Down
2 changes: 1 addition & 1 deletion test/issues/comments_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule Tentacat.Issues.CommentsTest do
use ExUnit.Case, async: false
use ExUnit.Case, async: true
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
import Tentacat.Issues.Comments

Expand Down
2 changes: 1 addition & 1 deletion test/issues/events_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule Tentacat.Issues.EventsTest do
use ExUnit.Case, async: false
use ExUnit.Case, async: true
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
import Tentacat.Issues.Events

Expand Down
2 changes: 1 addition & 1 deletion test/issues/issues_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule Tentacat.IssuesTest do
use ExUnit.Case, async: false
use ExUnit.Case, async: true
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
import Tentacat.Issues

Expand Down
2 changes: 1 addition & 1 deletion test/issues/labels_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule Tentacat.Issues.LabelsTest do
use ExUnit.Case, async: false
use ExUnit.Case, async: true
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
import Tentacat.Issues.Labels

Expand Down
2 changes: 1 addition & 1 deletion test/issues/reactions_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule Tentacat.Issues.ReactionsTest do
use ExUnit.Case, async: false
use ExUnit.Case, async: true
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
import Tentacat.Issues.Reactions

Expand Down
2 changes: 1 addition & 1 deletion test/milestones/milestones_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule Tentacat.MilestonesTest do
use ExUnit.Case, async: false
use ExUnit.Case, async: true
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
import Tentacat.Milestones

Expand Down
2 changes: 1 addition & 1 deletion test/organizations/hooks_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule Tentacat.Organizations.HooksTest do
use ExUnit.Case, async: false
use ExUnit.Case, async: true
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
import Tentacat.Organizations.Hooks

Expand Down
2 changes: 1 addition & 1 deletion test/organizations/members_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule Tentacat.Organizations.MembersTest do
use ExUnit.Case, async: false
use ExUnit.Case, async: true
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
import Tentacat.Organizations.Members

Expand Down
2 changes: 1 addition & 1 deletion test/organizations/projects_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule Tentacat.Organizations.ProjectsTest do
use ExUnit.Case, async: false
use ExUnit.Case, async: true
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
import Tentacat.Organizations.Projects

Expand Down
2 changes: 1 addition & 1 deletion test/organizations/teams_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule Tentacat.Organizations.TeamsTest do
use ExUnit.Case, async: false
use ExUnit.Case, async: true
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
import Tentacat.Organizations.Teams

Expand Down
2 changes: 1 addition & 1 deletion test/organizations_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule Tentacat.OrganizationsTest do
use ExUnit.Case, async: false
use ExUnit.Case, async: true
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
import Tentacat.Organizations

Expand Down
2 changes: 1 addition & 1 deletion test/projects_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule Tentacat.ProjectsTest do
use ExUnit.Case, async: false
use ExUnit.Case, async: true
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
import Tentacat.Projects

Expand Down
2 changes: 1 addition & 1 deletion test/pulls/comments/reactions_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule Tentacat.Pulls.Comments.ReactionsTest do
use ExUnit.Case, async: false
use ExUnit.Case, async: true
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
import Tentacat.Pulls.Comments.Reactions

Expand Down
2 changes: 1 addition & 1 deletion test/pulls/comments_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule Tentacat.Pulls.CommentsTest do
use ExUnit.Case, async: false
use ExUnit.Case, async: true
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
import Tentacat.Pulls.Comments

Expand Down
2 changes: 1 addition & 1 deletion test/pulls/review_requests_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule Tentacat.Pulls.ReviewRequestsTests do
use ExUnit.Case, async: false
use ExUnit.Case, async: true
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
import Tentacat.Pulls.ReviewRequests

Expand Down
2 changes: 1 addition & 1 deletion test/pulls/reviews_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule Tentacat.Pulls.ReviewsTests do
use ExUnit.Case, async: false
use ExUnit.Case, async: true
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
import Tentacat.Pulls.Reviews

Expand Down
2 changes: 1 addition & 1 deletion test/pulls_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule Tentacat.PullsTest do
use ExUnit.Case, async: false
use ExUnit.Case, async: true
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
import Tentacat.Pulls

Expand Down
2 changes: 1 addition & 1 deletion test/reactions_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule Tentacat.ReactionsTest do
use ExUnit.Case, async: false
use ExUnit.Case, async: true
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
import Tentacat.Reactions

Expand Down
4 changes: 2 additions & 2 deletions test/references_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule Tentacat.ReferencesTest do
use ExUnit.Case, async: false
use ExUnit.Case, async: true
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
import Tentacat.References

Expand Down Expand Up @@ -53,7 +53,7 @@ defmodule Tentacat.ReferencesTest do
test "remove/4" do
use_cassette "references#remove" do
{status_code, _, _} =
remove(@client, "soudqwiggle", "elixir-conspiracy", 'heads/old-readme')
remove(@client, "soudqwiggle", "elixir-conspiracy", ~c"heads/old-readme")

assert status_code == 204
end
Expand Down
2 changes: 1 addition & 1 deletion test/releases/assets_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule Tentacat.Releases.AssetsTest do
use ExUnit.Case, async: false
use ExUnit.Case, async: true
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
import Tentacat.Releases.Assets

Expand Down
2 changes: 1 addition & 1 deletion test/releases_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule Tentacat.ReleasesTest do
use ExUnit.Case, async: false
use ExUnit.Case, async: true
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
import Tentacat.Releases

Expand Down
2 changes: 1 addition & 1 deletion test/repositories/branches_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule Tentacat.Repositories.BranchesTest do
use ExUnit.Case, async: false
use ExUnit.Case, async: true
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
import Tentacat.Repositories.Branches

Expand Down
2 changes: 1 addition & 1 deletion test/repositories/collaborators_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule Tentacat.Repositories.CollaboratorsTest do
use ExUnit.Case, async: false
use ExUnit.Case, async: true
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
import Tentacat.Repositories.Collaborators

Expand Down
2 changes: 1 addition & 1 deletion test/repositories/contents_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule Tentacat.Repositories.ContentsTest do
use ExUnit.Case, async: false
use ExUnit.Case, async: true
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
import Tentacat.Repositories.Contents

Expand Down
2 changes: 1 addition & 1 deletion test/repositories/contributors_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule Tentacat.Repositories.ContributorsTest do
use ExUnit.Case, async: false
use ExUnit.Case, async: true
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
import Tentacat.Repositories.Contributors

Expand Down
2 changes: 1 addition & 1 deletion test/repositories/deploy_keys_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule Tentacat.Repositories.DeployKeysTest do
use ExUnit.Case, async: false
use ExUnit.Case, async: true
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
import Tentacat.Repositories.DeployKeys

Expand Down
2 changes: 1 addition & 1 deletion test/repositories/deployments_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule Tentacat.Repositories.DeploymentsTest do
use ExUnit.Case, async: false
use ExUnit.Case, async: true
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
import Tentacat.Repositories.Deployments

Expand Down
2 changes: 1 addition & 1 deletion test/repositories/forks_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule Tentacat.Repositories.ForksTest do
use ExUnit.Case, async: false
use ExUnit.Case, async: true
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
import Tentacat.Repositories.Forks

Expand Down
2 changes: 1 addition & 1 deletion test/repositories/labels_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule Tentacat.Repositories.LabelsTest do
use ExUnit.Case, async: false
use ExUnit.Case, async: true
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
import Tentacat.Repositories.Labels

Expand Down
2 changes: 1 addition & 1 deletion test/repositories/languages_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule Tentacat.Repositories.LanguagesTest do
use ExUnit.Case, async: false
use ExUnit.Case, async: true
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
import Tentacat.Repositories.Languages

Expand Down
2 changes: 1 addition & 1 deletion test/repositories/projects_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule Tentacat.Repositories.ProjectsTest do
use ExUnit.Case, async: false
use ExUnit.Case, async: true
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
import Tentacat.Repositories.Projects

Expand Down
2 changes: 1 addition & 1 deletion test/repositories/statuses_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule Tentacat.Repositories.StatusesTest do
use ExUnit.Case, async: false
use ExUnit.Case, async: true
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
import Tentacat.Repositories.Statuses

Expand Down
2 changes: 1 addition & 1 deletion test/repositories/tags_test.exs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
defmodule Tentacat.Repositories.TagsTest do
use ExUnit.Case, async: false
use ExUnit.Case, async: true
use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
import Tentacat.Repositories.Tags

Expand Down
Loading
Loading