Skip to content

Commit

Permalink
Merge pull request #2826 from paulo-ferraz-oliveira/fix/ci-otp-versions
Browse files Browse the repository at this point in the history
Fix CI OTP versions
  • Loading branch information
ferd authored Sep 17, 2023
2 parents 436815e + 8cd3e25 commit bbcf3da
Showing 1 changed file with 16 additions and 16 deletions.
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

0 comments on commit bbcf3da

Please sign in to comment.