Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
lhoguin committed Oct 21, 2024
1 parent c800f42 commit 2562fd7
Showing 1 changed file with 78 additions and 67 deletions.
145 changes: 78 additions & 67 deletions .github/workflows/test-make.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,76 +15,87 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build-and-xref:
name: Build and Xref
strategy:
fail-fast: false
matrix:
erlang_version:
- '26'
- '27'
elixir_version:
- '1.17'
# @todo Add macOS and Windows.
# build-and-xref:
# name: Build and Xref
# strategy:
# fail-fast: false
# matrix:
# erlang_version:
# - '26'
# - '27'
# elixir_version:
# - '1.17'
# # @todo Add macOS and Windows.
# runs-on: ubuntu-latest
# timeout-minutes: 30
# steps:
# - name: CHECKOUT REPOSITORY
# uses: actions/checkout@v4
#
# - name: FETCH TAGS
# run: git fetch --tags
#
# - name: SETUP OTP & ELIXIR
# uses: erlef/setup-beam@v1.17
# with:
# otp-version: ${{ matrix.erlang_version }}
# elixir-version: ${{ matrix.elixir_version }}
# hexpm-mirrors: |
# https://builds.hex.pm
# https://cdn.jsdelivr.net/hex
#
# - name: SANITY CHECK (rabbit)
# run: make -C deps/rabbit parallel-ct-sanity-check
#
# - name: SANITY CHECK (rabbitmq_mqtt)
# run: make -C deps/rabbitmq_mqtt parallel-ct-sanity-check
#
# - name: BUILD
# run: make
#
# - name: XREF
# run: make xref

mixed-test:
name: Mixed version testing
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: CHECKOUT REPOSITORY
uses: actions/checkout@v4

- name: FETCH TAGS
run: git fetch --tags

- name: SETUP OTP & ELIXIR
uses: erlef/setup-beam@v1.17
- uses: dsaltares/fetch-gh-release-asset@master
with:
otp-version: ${{ matrix.erlang_version }}
elixir-version: ${{ matrix.elixir_version }}
hexpm-mirrors: |
https://builds.hex.pm
https://cdn.jsdelivr.net/hex
regex: true
file: "rabbitmq-server-generic-unix-[\\d.]*\\.tar.xz"

- name: SANITY CHECK (rabbit)
run: make -C deps/rabbit parallel-ct-sanity-check
- run: ls -la

- name: SANITY CHECK (rabbitmq_mqtt)
run: make -C deps/rabbitmq_mqtt parallel-ct-sanity-check

- name: BUILD
run: make

- name: XREF
run: make xref

test:
name: Test
strategy:
fail-fast: false
matrix:
erlang_version:
- '26'
# test:
# name: Test
# strategy:
# fail-fast: false
# matrix:
# erlang_version:
# - '26'
## - '27'
# elixir_version:
# - '1.17'
# metadata_store:
# - mnesia
# - khepri
# uses: ./.github/workflows/test-make-tests.yaml
# with:
# erlang_version: ${{ matrix.erlang_version }}
# elixir_version: ${{ matrix.elixir_version }}
# metadata_store: ${{ matrix.metadata_store }}
#
# type-check:
# name: Type check
# strategy:
# fail-fast: false
# matrix:
# erlang_version: # Latest OTP
# - '27'
elixir_version:
- '1.17'
metadata_store:
- mnesia
- khepri
uses: ./.github/workflows/test-make-tests.yaml
with:
erlang_version: ${{ matrix.erlang_version }}
elixir_version: ${{ matrix.elixir_version }}
metadata_store: ${{ matrix.metadata_store }}

type-check:
name: Type check
strategy:
fail-fast: false
matrix:
erlang_version: # Latest OTP
- '27'
elixir_version: # Latest Elixir
- '1.17'
uses: ./.github/workflows/test-make-type-check.yaml
with:
erlang_version: ${{ matrix.erlang_version }}
elixir_version: ${{ matrix.elixir_version }}
# elixir_version: # Latest Elixir
# - '1.17'
# uses: ./.github/workflows/test-make-type-check.yaml
# with:
# erlang_version: ${{ matrix.erlang_version }}
# elixir_version: ${{ matrix.elixir_version }}

0 comments on commit 2562fd7

Please sign in to comment.