Skip to content

Commit

Permalink
Add support to send C coverage. Don't cache. Move hex plugin to Action
Browse files Browse the repository at this point in the history
  • Loading branch information
badlop committed Jun 30, 2021
1 parent 17c7c9d commit ada3bd4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 16 deletions.
13 changes: 1 addition & 12 deletions .github/workflows/ci.yml
Expand Up @@ -9,27 +9,16 @@ jobs:
strategy:
fail-fast: false
matrix:
otp: ['19.3', '22.3', 24]
otp: ['19.3', '21.3', 24]
runs-on: ubuntu-20.04
container:
image: erlang:${{ matrix.otp }}

steps:

- uses: actions/checkout@v2

- name: Cache rebar3
uses: actions/cache@v2
with:
path: |
~/.cache/rebar3/
key: ${{matrix.otp}}-${{hashFiles('rebar.config')}}

- run: rebar3 compile
- run: rebar3 xref
- run: rebar3 dialyzer
- run: rebar3 eunit -v

- name: Send to Coveralls
if: matrix.otp == 24
env:
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/hexpm-release.yml
@@ -1,4 +1,4 @@
name: hexpm-release
name: Hex

on:
push:
Expand All @@ -12,6 +12,11 @@ jobs:
- name: Check out
uses: actions/checkout@v2

- name: Setup rebar3 hex
run: |
mkdir -p ~/.config/rebar3/
echo "{plugins, [rebar3_hex]}." > ~/.config/rebar3/rebar.config
- name: Publish to hex.pm
run: rebar3 hex publish --repo hexpm --yes || head rebar3.crashdump
env:
Expand Down
6 changes: 3 additions & 3 deletions rebar.config.script
Expand Up @@ -114,11 +114,11 @@ Rules = [
{[deps], IsRebar3,
Rebar3DepsFilter, []},
{[plugins], IsRebar3,
AppendList([rebar3_hex, pc]), []},
AppendList([pc]), []},
{[plugins], os:getenv("COVERALLS") == "true",
AppendList([{coveralls, {git,
"https://github.com/RoadRunnr/coveralls-erl.git",
{branch, "feature/git-info"}}} ]), []},
"https://github.com/processone/coveralls-erl.git",
{branch, "addjsonfile"}}} ]), []},
{[deps], os:getenv("USE_GLOBAL_DEPS") /= false,
GlobalDepsFilter, []}
],
Expand Down

0 comments on commit ada3bd4

Please sign in to comment.