-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
105 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Run tests and dialyzer | ||
|
||
name: Test | ||
|
||
# Controls when the action will run. Triggers the workflow on push or pull request | ||
# events but only for the master branch | ||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
linux: | ||
name: Test on OTP ${{ matrix.otp_version }} | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
otp_version: [19.3,21,22,23] | ||
os: [ubuntu-latest] | ||
|
||
container: | ||
image: erlang:${{ matrix.otp_version }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Compile | ||
run: make | ||
- name: Test | ||
run: make test | ||
- name: XRef | ||
run: make xref | ||
- name: Dialyzer | ||
run: make dialyzer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ ebin | |
deps | ||
src/mimetypes_scan.erl | ||
src/mimetypes_parse.erl | ||
rebar3 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
REBAR := ./rebar3 | ||
REBAR_URL := https://s3.amazonaws.com/rebar3/rebar3 | ||
ERL ?= erl | ||
|
||
.PHONY: compile test | ||
|
||
all: compile | ||
|
||
compile: $(REBAR) | ||
$(REBAR) compile | ||
|
||
shell: $(REBAR) | ||
$(REBAR) shell | ||
|
||
test: $(REBAR) | ||
$(REBAR) as test eunit | ||
|
||
dialyzer: $(REBAR) | ||
$(REBAR) as test dialyzer | ||
|
||
xref: $(REBAR) | ||
$(REBAR) as test xref | ||
|
||
clean: $(REBAR) | ||
$(REBAR) clean | ||
|
||
./rebar3: | ||
$(ERL) -noshell -s inets -s ssl \ | ||
-eval '{ok, saved_to_file} = httpc:request(get, {"$(REBAR_URL)", []}, [], [{stream, "./rebar3"}])' \ | ||
-s init stop | ||
chmod +x ./rebar3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[]. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters