Eliminate use of experimental function code:lib_dir/2 #475
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: Common Test | |
on: | |
pull_request: | |
branches: | |
- 'main' | |
push: | |
branches: | |
- 'main' | |
jobs: | |
linux: | |
name: Test on OTP ${{ matrix.otp_version }} and ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
otp_version: [23, 24, 26] | |
os: [ubuntu-20.04] # latest only runs >= 24.2 | |
container: | |
image: erlang:${{ matrix.otp_version }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Compile | |
run: rebar3 compile | |
- name: CT tests | |
run: rebar3 ct | |
- name: Xref | |
run: rebar3 xref | |
- name: Dialyzer | |
run: rebar3 dialyzer | |
macos: | |
name: Test on MacOS | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Erlang | |
run: brew install erlang | |
- name: Install rebar3 | |
run: | | |
wget https://s3.amazonaws.com/rebar3/rebar3 | |
chmod +x rebar3 | |
- name: CT tests | |
run: ./rebar3 ct |