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

Migrate from Travis to Github Actions #4

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
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
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Erlang Tests CI
on: push

jobs:
Run:
strategy:
matrix:
erlang: ['24']

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
erlang: ['24']
erlang: ['24', '26']

runs-on: ubuntu-latest
container:
image: erlang:${{ matrix.erlang }}
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
env:
cache-name: rebar3
with:
path: |
_build
~/.cache/rebar3
key: ci-${{runner.os}}-${{env.cache-name}}-erlang_${{matrix.erlang}}-rebar3-${{hashFiles('rebar.lock')}}
- name: elvis
run: make elvis
- name: xref
run: make xref
- name: dialyzer
run: make dialyzer
- name: eunit
run: make eunit
25 changes: 0 additions & 25 deletions .travis.yml

This file was deleted.

10 changes: 2 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ compile:
@echo "Running rebar3 compile..."
@$(REBAR3) as compile compile

coveralls:
@echo "Running rebar3 coveralls send..."
@$(REBAR3) as test coveralls send

dialyzer:
@echo "Running rebar3 dialyze..."
@$(REBAR3) dialyzer
Expand Down Expand Up @@ -43,12 +39,10 @@ profile:
@_build/test/lib/fprofx/erlgrindx -p fprofx.analysis
@$(CACHEGRIND) fprofx.cgrind

test: elvis xref eunit dialyzer

travis: test coveralls
test: elvis xref dialyzer eunit

xref:
@echo "Running rebar3 xref..."
@$(REBAR3) xref

.PHONY: clean compile coveralls dialyzer edoc elvis eunit profile xref
.PHONY: clean compile dialyzer edoc elvis eunit profile xref
Binary file modified bin/rebar3
Binary file not shown.
Loading