Upgrade amoc_rest with new openapi gens and enforce OTP27 #20
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: 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 |