Skip to content

Commit c7601fe

Browse files
authored
GitHub CI (#4)
1 parent a697e5b commit c7601fe

File tree

5 files changed

+53
-40
lines changed

5 files changed

+53
-40
lines changed

.github/workflows/ci.yml

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-20.04
12+
env:
13+
MIX_ENV: test
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
include:
18+
- pair:
19+
elixir: "1.8.2"
20+
otp: "22.3"
21+
- pair:
22+
elixir: "1.16"
23+
otp: "26.2"
24+
lint: lint
25+
steps:
26+
- uses: actions/checkout@v4
27+
28+
- name: Install Erlang and Elixir
29+
uses: erlef/setup-beam@v1
30+
with:
31+
otp-version: ${{ matrix.pair.otp }}
32+
elixir-version: ${{ matrix.pair.elixir }}
33+
34+
- name: Install dependencies
35+
run: mix deps.get
36+
37+
- name: Ensure mix.lock is up to date
38+
run: mix deps.get --check-locked
39+
if: ${{ matrix.lint }}
40+
41+
- name: Ensure that files are formatted
42+
run: mix format --check-formatted
43+
if: ${{ matrix.lint }}
44+
45+
- name: Check for unused dependencies
46+
run: mix deps.unlock --check-unused
47+
if: ${{ matrix.lint }}
48+
49+
- name: Run tests
50+
run: mix test

.travis.yml

-7
This file was deleted.

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# OpenHours
21

3-
[![Build Status](https://travis-ci.org/hopsor/open_hours.svg?branch=master)](https://travis-ci.org/hopsor/open_hours) [![Package Version](https://img.shields.io/hexpm/v/open_hours.svg?color=purple)](https://hex.pm/packages/open_hours)
2+
# OpenHours
3+
[![Build Status](https://github.com/hopsor/open_hours/actions/workflows/ci.yml/badge.svg)](https://github.com/hopsor/open_hours/actions?query=workflow%3A%22CI%22) [![Package Version](https://img.shields.io/hexpm/v/open_hours.svg?color=purple)](https://hex.pm/packages/open_hours)
44

55
OpenHours is an Elixir package aimed to help with time calculations using business hours.
66

config/config.exs

-30
This file was deleted.

mix.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"nimble_parsec": {:hex, :nimble_parsec, "1.3.1", "2c54013ecf170e249e9291ed0a62e5832f70a476c61da16f6aac6dca0189f2af", [:mix], [], "hexpm", "2682e3c0b2eb58d90c6375fc0cc30bc7be06f365bf72608804fb9cffa5e1b167"},
1414
"parse_trans": {:hex, :parse_trans, "3.3.1", "16328ab840cc09919bd10dab29e431da3af9e9e7e7e6f0089dd5a2d2820011d8", [:rebar3], [], "hexpm", "07cd9577885f56362d414e8c4c4e6bdf10d43a8767abb92d24cbe8b24c54888b"},
1515
"rangex": {:git, "https://github.com/openapi-ro/rangex.git", "a92b03f8f075d73fef1bbbf4b1c088feaff8724b", [tag: "master"]},
16-
"ssl_verify_fun": {:hex, :ssl_verify_fun, "1.1.6", "cf344f5692c82d2cd7554f5ec8fd961548d4fd09e7d22f5b62482e5aeaebd4b0", [:make, :mix, :rebar3], [], "hexpm", "bdb0d2471f453c88ff3908e7686f86f9be327d065cc1ec16fa4540197ea04680"},
16+
"ssl_verify_fun": {:hex, :ssl_verify_fun, "1.1.7", "354c321cf377240c7b8716899e182ce4890c5938111a1296add3ec74cf1715df", [:make, :mix, :rebar3], [], "hexpm", "fe4c190e8f37401d30167c8c405eda19469f34577987c76dde613e838bbc67f8"},
1717
"tzdata": {:hex, :tzdata, "1.1.1", "20c8043476dfda8504952d00adac41c6eda23912278add38edc140ae0c5bcc46", [:mix], [{:hackney, "~> 1.17", [hex: :hackney, repo: "hexpm", optional: false]}], "hexpm", "a69cec8352eafcd2e198dea28a34113b60fdc6cb57eb5ad65c10292a6ba89787"},
1818
"unicode_util_compat": {:hex, :unicode_util_compat, "0.7.0", "bc84380c9ab48177092f43ac89e4dfa2c6d62b40b8bd132b1059ecc7232f9a78", [:rebar3], [], "hexpm", "25eee6d67df61960cf6a794239566599b09e17e668d3700247bc498638152521"},
1919
}

0 commit comments

Comments
 (0)