Minor fixes & improvements, tests on OTP 26 #48
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: Build, Test, Dialyze | |
on: | |
pull_request: | |
types: [ opened, reopened, synchronize ] | |
push: | |
branches: | |
- 'master' | |
jobs: | |
linux: | |
name: Test on OTP ${{ matrix.otp_version }} and ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
otp_version: [23, 24, 25, 26] | |
os: [ubuntu-latest] | |
container: | |
image: erlang:${{ matrix.otp_version }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Run tests | |
run: rebar3 ct | |
- name: Documentation | |
run: rebar3 edoc | |
- name: ExDoc Documentation | |
run: if [ $(rebar3 version | awk '{print $5}') -gt 23 ]; then rebar3 ex_doc; fi; | |
- shell: bash | |
name: Dialyzer | |
run: rebar3 dialyzer | |
- shell: bash | |
name: Escriptize | |
run: rebar3 as prod escriptize | |
- shell: bash | |
name: Smoke test | |
run: ./erlperf 'timer:sleep(1).' |