Skip to content

Upgrade amoc_rest with new openapi gens and enforce OTP27 #20

Upgrade amoc_rest with new openapi gens and enforce OTP27

Upgrade amoc_rest with new openapi gens and enforce OTP27 #20

Workflow file for this run

name: CI
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
name: OTP ${{matrix.otp_vsn}}
strategy:
matrix:
otp_vsn: ['27']
rebar_vsn: ['3.24.0']
runs-on: 'ubuntu-24.04'
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.otp_vsn }}
rebar3-version: ${{ matrix.rebar_vsn }}
- name: Run tests project
run: rebar3 test
integration_test:
name: docker container test with OTP ${{matrix.otp_vsn}}
strategy:
matrix:
otp_vsn: ['27']
rebar_vsn: ['3.24.0']
runs-on: 'ubuntu-24.04'
env:
OTP_RELEASE: ${{ matrix.otp_vsn }}
steps:
- uses: actions/checkout@v4
- uses: erlef/setup-beam@v1
with:
otp-version: ${{ matrix.otp_vsn }}
rebar3-version: ${{ matrix.rebar_vsn }}
- run: ./ci/build_docker_image.sh
- run: ./ci/start_demo_cluster.sh
- run: ./ci/test_amoc_cluster.sh
- run: ./ci/test_distribute_scenario.sh
- run: ./ci/test_run_scenario.sh
- run: ./ci/test_add_new_node.sh
- run: ./ci/stop_demo_cluster.sh