diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f735630..fcda6db 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: diff --git a/.github/workflows/hexpm-release.yml b/.github/workflows/hexpm-release.yml index fae4ccb..99f7e56 100644 --- a/.github/workflows/hexpm-release.yml +++ b/.github/workflows/hexpm-release.yml @@ -1,4 +1,4 @@ -name: hexpm-release +name: Hex on: push: @@ -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: diff --git a/rebar.config.script b/rebar.config.script index 65ad617..7690444 100644 --- a/rebar.config.script +++ b/rebar.config.script @@ -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, []} ],