Correct README link to Hex.pm (#330) #318
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
--- | |
name: test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
types: [opened, synchronize] | |
jobs: | |
test: | |
name: Erlang/OTP ${{matrix.otp}} / rebar3 ${{matrix.rebar3}} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
otp: ['24', '25'] | |
rebar3: ['3.16.1'] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: erlef/setup-beam@v1 | |
with: | |
otp-version: ${{matrix.otp}} | |
rebar3-version: ${{matrix.rebar3}} | |
- name: Static analysis | |
run: rebar3 dialyzer | |
- name: Common Tests | |
run: rebar3 ct | |
- name: Code coverage | |
run: rebar3 as test do cover,covertool generate | |
- name: Upload coverage report | |
uses: codecov/codecov-action@v1 | |
with: | |
files: _build/test/covertool/rebar3_hex.covertool.xml | |
name: ${{matrix.otp}} |