Fix typo, lenths -> lengths #68
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: Test | |
on: | |
pull_request: | |
branches: | |
- 'main' | |
push: | |
branches: | |
- 'main' | |
jobs: | |
build: | |
name: Test on OTP ${{ matrix.otp_version }} and ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
otp_version: [24, 25, 26] | |
os: [ubuntu-latest] | |
env: | |
OTP_VERSION: ${{ matrix.otp_version }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: erlef/setup-beam@v1 | |
with: | |
otp-version: ${{ matrix.otp_version }} | |
rebar3-version: 3.22.0 | |
- uses: actions/cache@v2 | |
name: Cache | |
with: | |
path: | | |
_build | |
key: ${{ runner.os }}-build-${{ matrix.otp_version }}-${{ hashFiles(format('rebar.lock')) }}-1 | |
restore-keys: | | |
${{ runner.os }}-build-${{ matrix.otp_version }}-1- | |
- name: Report | |
run: rebar3 report "compile" | |
- name: Compile | |
run: rebar3 compile | |
- name: Common Test tests | |
run: rebar3 ct --cover | |
- name: XRef | |
run: rebar3 xref | |
- name: Dialyzer | |
run: rebar3 dialyzer | |
if: ${{ matrix.otp_version == 26 }} |