Split tests #362
Workflow file for this run
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: Erlang CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: | |
image: erlang:${{ matrix.erlang-version }} | |
strategy: | |
matrix: | |
erlang-version: [25, 26] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Compile | |
run: rebar3 as test compile | |
- name: Run tests | |
run: rebar3 cover_tests | |
- name: Send test coverage report | |
run: rebar3 as test codecov analyze | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v3 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
dialyzer: | |
runs-on: ubuntu-latest | |
container: | |
image: erlang:${{ matrix.erlang-version }} | |
strategy: | |
matrix: | |
erlang-version: [25, 26] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Run dialyzer | |
run: rebar3 dialyzer | |
xref: | |
runs-on: ubuntu-latest | |
container: | |
image: erlang:25 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Run xref | |
run: rebar3 xref | |
erlfmt: | |
runs-on: ubuntu-latest | |
container: | |
image: erlang:25 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Run erlfmt | |
run: rebar3 format_check | |
docs: | |
runs-on: ubuntu-latest | |
container: | |
image: erlang:25 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Run ex_doc | |
run: rebar3 ex_doc |