chore: migrate v3.20.0-emqx changes onto v3.24.0 #22
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 | |
env: | |
LATEST_OTP_RELEASE: 27 | |
on: | |
pull_request: | |
branches: | |
- '*-emqx' | |
push: | |
branches: | |
- '*-emqx' | |
jobs: | |
linux: | |
name: Test on OTP ${{ matrix.otp_version }} | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
otp_version: [25, 26, 27] | |
os: [ubuntu-latest] | |
container: | |
image: erlang:${{ matrix.otp_version }} | |
steps: | |
- uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- name: build | |
run: | | |
git config --global --add safe.directory $(pwd) | |
./bootstrap | |
- name: CT tests | |
run: ./rebar3 ct | |
- shell: bash | |
name: Dialyzer | |
run: | | |
./rebar3 clean -a | |
./rebar3 as dialyzer dialyzer | |
if: ${{ matrix.otp_version == env.LATEST_OTP_RELEASE }} | |
macos: | |
name: Test on MacOS | |
runs-on: macos-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
otp_version: [25, 26, 27] | |
steps: | |
- uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- name: Install erlang | |
run: | | |
brew install erlang@${{ matrix.otp_version }} | |
echo "PATH=$(brew --prefix)/opt/erlang@${{ matrix.otp_version }}/bin:$PATH" >> $GITHUB_ENV | |
- name: Compile | |
run: ./bootstrap | |
- name: CT tests | |
run: ./rebar3 ct |