Skip to content

Commit 29a475d

Browse files
committed
Add GitHub actions
1 parent e5c0867 commit 29a475d

File tree

10 files changed

+174
-258
lines changed

10 files changed

+174
-258
lines changed

.circleci/config.yml

-130
This file was deleted.

.dialyzer_ignore.exs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[
2-
{"lib/poison/encoder.ex", :unknown_function, 0},
3-
{"lib/poison/decoder.ex", :unknown_function, 0},
2+
{"lib/poison/encoder.ex", :unknown_function, 80},
3+
{"lib/poison/decoder.ex", :unknown_function, 106},
44
{"lib/poison/parser.ex", :improper_list_constr}
55
]

.github/workflows/ci.yml

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: ci
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
env:
12+
MIX_ENV: test
13+
14+
jobs:
15+
test:
16+
runs-on: ubuntu-latest
17+
name: OTP ${{matrix.otp}} / Elixir ${{matrix.elixir}}
18+
strategy:
19+
matrix:
20+
otp:
21+
- '24.0'
22+
- '23.3'
23+
- '23.2'
24+
- '23.1'
25+
- '23.0'
26+
elixir:
27+
- '1.12.2'
28+
- '1.12.1'
29+
- '1.12.0'
30+
- '1.11.4'
31+
- '1.11.3'
32+
- '1.11.2'
33+
- '1.11.1'
34+
- '1.11.0'
35+
36+
steps:
37+
- uses: actions/checkout@v2
38+
with:
39+
fetch-depth: 0
40+
submodules: true
41+
42+
- uses: erlef/setup-beam@v1
43+
with:
44+
otp-version: ${{matrix.otp}}
45+
elixir-version: ${{matrix.elixir}}
46+
47+
- uses: actions/cache@v2
48+
id: mix-cache
49+
with:
50+
path: |
51+
_build
52+
deps
53+
vendor
54+
key: ${{ runner.os }}-${{ matrix.otp }}-${{ matrix.elixir }}-${{ hashFiles('mix.lock') }}
55+
56+
- if: steps.mix-cache.outputs.cache-hit != 'true'
57+
run: mix deps.get
58+
59+
- run: mix coveralls.github
60+
env:
61+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.travis.yml

-29
This file was deleted.

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Poison
22

3-
[![Build Status](https://travis-ci.org/devinus/poison.svg?branch=master)](https://travis-ci.org/devinus/poison)
4-
[![Coverage Status](https://coveralls.io/repos/github/devinus/poison/badge.svg?branch=master)](https://coveralls.io/github/devinus/poison?branch=master)
3+
[![Build Status](https://img.shields.io/github/workflow/status/devinus/poison/ci/master)](https://github.com/devinus/poison/actions/workflows/ci.yml)
4+
[![Coverage Status](https://img.shields.io/coveralls/github/devinus/poison/master)](https://coveralls.io/github/devinus/poison?branch=master)
55
[![Hex.pm Version](https://img.shields.io/hexpm/v/poison.svg?style=flat-square)](https://hex.pm/packages/poison)
66
[![Hex.pm Download Total](https://img.shields.io/hexpm/dt/poison.svg?style=flat-square)](https://hex.pm/packages/poison)
77

@@ -160,10 +160,10 @@ $ MIX_ENV=bench mix run bench/run.exs
160160

161161
### Current Benchmarks
162162

163-
As of 2020-06-25:
163+
As of 2021-07-22:
164164

165165
- Amazon EC2 c5.2xlarge instance running Ubuntu Server 20.04:
166-
https://gist.github.com/devinus/c82c2f6eaa22456e7ff0f5705466b1de
166+
https://gist.github.com/devinus/f56cff9e5a0aa9de9215cf33212085f6
167167

168168
## License
169169

mix.exs

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ defmodule Poison.Mixfile do
3838
"coveralls.detail": :test,
3939
"coveralls.html": :test,
4040
"coveralls.post": :test,
41-
"coveralls.travis": :test
41+
"coveralls.github": :test
4242
]
4343
]
4444
end

mix.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"earmark_parser": {:hex, :earmark_parser, "1.4.13", "0c98163e7d04a15feb62000e1a891489feb29f3d10cb57d4f845c405852bbef8", [:mix], [], "hexpm", "d602c26af3a0af43d2f2645613f65841657ad6efc9f0e361c3b6c06b578214ba"},
1212
"erlex": {:hex, :erlex, "0.2.6", "c7987d15e899c7a2f34f5420d2a2ea0d659682c06ac607572df55a43753aa12e", [:mix], [], "hexpm", "2ed2e25711feb44d52b17d2780eabf998452f6efda104877a3881c2f8c0c0c75"},
1313
"ex_doc": {:hex, :ex_doc, "0.25.0", "4070a254664ee5495c2f7cce87c2f43064a8752f7976f2de4937b65871b05223", [:mix], [{:earmark_parser, "~> 1.4.0", [hex: :earmark_parser, repo: "hexpm", optional: false]}, {:makeup_elixir, "~> 0.14", [hex: :makeup_elixir, repo: "hexpm", optional: false]}, {:makeup_erlang, "~> 0.1", [hex: :makeup_erlang, repo: "hexpm", optional: false]}], "hexpm", "2d90883bd4f3d826af0bde7fea733a4c20adba1c79158e2330f7465821c8949b"},
14-
"excoveralls": {:hex, :excoveralls, "0.14.1", "14140e4ef343f2af2de33d35268c77bc7983d7824cb945e6c2af54235bc2e61f", [:mix], [{:hackney, "~> 1.16", [hex: :hackney, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "4a588f9f8cf9dc140cc1f3d0ea4d849b2f76d5d8bee66b73c304bb3d3689c8b0"},
14+
"excoveralls": {:hex, :excoveralls, "0.14.2", "f9f5fd0004d7bbeaa28ea9606251bb643c313c3d60710bad1f5809c845b748f0", [:mix], [{:hackney, "~> 1.16", [hex: :hackney, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "ca6fd358621cb4d29311b29d4732c4d47dac70e622850979bc54ed9a3e50f3e1"},
1515
"exjsx": {:hex, :exjsx, "4.0.0", "60548841e0212df401e38e63c0078ec57b33e7ea49b032c796ccad8cde794b5c", [:mix], [{:jsx, "~> 2.8.0", [hex: :jsx, repo: "hexpm", optional: false]}], "hexpm", "32e95820a97cffea67830e91514a2ad53b888850442d6d395f53a1ac60c82e07"},
1616
"file_system": {:hex, :file_system, "0.2.10", "fb082005a9cd1711c05b5248710f8826b02d7d1784e7c3451f9c1231d4fc162d", [:mix], [], "hexpm", "41195edbfb562a593726eda3b3e8b103a309b733ad25f3d642ba49696bf715dc"},
1717
"hackney": {:hex, :hackney, "1.17.4", "99da4674592504d3fb0cfef0db84c3ba02b4508bae2dff8c0108baa0d6e0977c", [:rebar3], [{:certifi, "~>2.6.1", [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.3.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", "de16ff4996556c8548d512f4dbe22dd58a587bf3332e7fd362430a7ef3986b16"},

0 commit comments

Comments
 (0)