Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CI OTP versions #2826

Merged
merged 4 commits into from
Sep 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
name: Common Test

on:
pull_request:
branches:
- 'main'
push:
branches:
- 'main'
on: [pull_request, push]

env:
LATEST_OTP_RELEASE: 26

jobs:
linux:
Expand All @@ -15,15 +12,12 @@ jobs:

strategy:
matrix:
otp_version: [24, 25.0, 26]
otp_version: [24, 25, 26]
os: [ubuntu-latest]

container:
image: erlang:${{ matrix.otp_version }}

env:
LATEST_OTP_RELEASE: 26.0

steps:
- uses: actions/checkout@v2
- name: Compile
Expand All @@ -33,7 +27,9 @@ jobs:
- shell: bash
name: Dialyzer
run: |
[[ "${{ matrix.otp_version }}" != "${{ env.LATEST_OTP_RELEASE }}" ]] || (./rebar3 clean -a && ./rebar3 as dialyzer dialyzer)
./rebar3 clean -a
./rebar3 as dialyzer dialyzer
if: ${{ matrix.otp_version == env.LATEST_OTP_RELEASE }}

macos:
name: Test on MacOS
Expand All @@ -44,15 +40,19 @@ jobs:
- name: Brew Version Check
run: brew --version
- name: Brew Cleanup
run: brew cleanup
run: |
brew cleanup --prune=all -s
brew autoremove
- name: Brew Untap Casks
run: brew untap homebrew/cask homebrew/core
- name: Keep Brew Fresh
run: |
brew update
brew upgrade
- name: Debug Brew
run: brew doctor
- name: Keep Brew Fresh
run: brew update
- name: Install Erlang
run: brew install erlang
run: brew install erlang@${{ env.LATEST_OTP_RELEASE }}
- name: Compile
run: ./bootstrap
- name: CT tests
Expand Down