Skip to content

Commit 7034e0b

Browse files
authored
Add Github Actions (PSPDFKit-labs#133)
* Add Github Actions
1 parent 834fdaa commit 7034e0b

File tree

3 files changed

+106
-64
lines changed

3 files changed

+106
-64
lines changed

.github/workflows/elixir.yml

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
build:
14+
15+
name: Build and test - Erlang ${{matrix.otp}} / Elixir ${{matrix.elixir}}
16+
runs-on: ubuntu-20.04
17+
strategy:
18+
matrix:
19+
# https://hexdocs.pm/elixir/compatibility-and-deprecations.html#compatibility-between-elixir-and-erlang-otp
20+
include:
21+
# Elixir 1.10.3: 21-23
22+
- elixir: '1.10.3'
23+
otp: '21.3'
24+
25+
- elixir: "1.10.3"
26+
otp: "22.3"
27+
28+
- elixir: "1.10.3"
29+
otp: "23.3"
30+
31+
# Elixir 1.11: 21-23
32+
- elixir: "1.11.4"
33+
otp: "21.3"
34+
35+
- elixir: "1.11.4"
36+
otp: "22.3"
37+
38+
- elixir: "1.11.4"
39+
otp: "23.3"
40+
41+
- elixir: "1.11.4"
42+
otp: "24.3"
43+
44+
# Elixir 1.12: 22-24
45+
- elixir: "1.12"
46+
otp: "22.3"
47+
48+
- elixir: "1.12"
49+
otp: "23.3"
50+
51+
- elixir: "1.12"
52+
otp: "24.3"
53+
54+
# Elixir 1.13: 22-24
55+
- elixir: "1.13.4"
56+
otp: "22.3"
57+
58+
- elixir: "1.13.4"
59+
otp: "23.3"
60+
61+
- elixir: "1.13.4"
62+
otp: "24.3"
63+
64+
- elixir: "1.13.4"
65+
otp: "25.3"
66+
67+
# Elixir 1.14: 23-25
68+
- elixir: "1.14"
69+
otp: "23.3"
70+
71+
- elixir: "1.14"
72+
otp: "24.3"
73+
74+
- elixir: "1.14"
75+
otp: "25.3"
76+
77+
# Not available in operating system yet
78+
# Elixir 1.15: 24-26
79+
#- elixir: "1.15"
80+
# otp: "24.3"
81+
#
82+
#- elixir: "1.15"
83+
# otp: "25.3"
84+
#
85+
#- elixir: "1.15"
86+
# otp: "26.0"
87+
steps:
88+
- uses: actions/checkout@v3
89+
- name: Set up Elixir
90+
uses: erlef/setup-beam@988e02bfe678367a02564f65ca2e37726dc0268f
91+
with:
92+
otp-version: ${{matrix.otp}}
93+
elixir-version: ${{matrix.elixir}}
94+
- name: Restore dependencies cache
95+
uses: actions/cache@v3
96+
with:
97+
path: deps
98+
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
99+
restore-keys: ${{ runner.os }}-mix-
100+
- name: Install dependencies
101+
run: mix deps.get
102+
- name: Run tests
103+
run: mix test
104+

.travis.yml

Lines changed: 0 additions & 62 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<!-- MDOC !-->
44

5-
[![Build Status](https://travis-ci.org/PSPDFKit-labs/bypass.svg?branch=master)](https://travis-ci.org/PSPDFKit-labs/bypass)
5+
[![Build Status](https://github.com/PSPDFKit-labs/bypass/actions/workflows/elixir.yml/badge.svg?branch=master)](https://github.com/PSPDFKit-labs/bypass/actions)
66
[![Module Version](https://img.shields.io/hexpm/v/bypass.svg)](https://hex.pm/packages/bypass)
77
[![Hex Docs](https://img.shields.io/badge/hex-docs-lightgreen.svg)](https://hexdocs.pm/bypass/)
88
[![Total Download](https://img.shields.io/hexpm/dt/bypass.svg)](https://hex.pm/packages/bypass)
@@ -16,7 +16,7 @@ requests. This is most useful in tests, when you want to create a mock HTTP
1616
server and test how your HTTP client handles different types of responses from
1717
the server.
1818

19-
Bypass supports Elixir 1.7 and OTP 20 and up. It works with Cowboy 2.
19+
Bypass supports Elixir 1.10 and OTP 21 and up. It works with Cowboy 2.
2020

2121
## Usage
2222

0 commit comments

Comments
 (0)