diff --git a/.github/workflows/debug.yml b/.github/workflows/debug.yml index 232dc61..e46711d 100644 --- a/.github/workflows/debug.yml +++ b/.github/workflows/debug.yml @@ -8,8 +8,11 @@ jobs: fail-fast: false matrix: os: [ ubuntu-20.04, ubuntu-22.04 ] + version: [ latest ] + include: + - { os: ubuntu-24.04, version: '1.3.1' } - name: ${{ matrix.os }} + name: ${{ matrix.os }} (${{ matrix.version }}) runs-on: ${{ matrix.os }} continue-on-error: true # prevent the workflow to fail if this job fails steps: @@ -25,6 +28,15 @@ jobs: - run: sudo apt install lavinmq shell: bash continue-on-error: true + - name: "Install LavinMQ (${{ matrix.version }})" + run: | + if test "${{ matrix.version }}" = "latest"; + then + sudo apt install lavinmq + else + sudo apt install "lavinmq=${{ matrix.version }}-1" + fi + shell: bash - run: sudo ls -al /etc/lavinmq shell: bash continue-on-error: true @@ -36,4 +48,4 @@ jobs: continue-on-error: true - run: sudo systemctl status lavinmq.service shell: bash - continue-on-error: true \ No newline at end of file + continue-on-error: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b89a182..31f5a9e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,11 +15,16 @@ jobs: fail-fast: false matrix: os: [ ubuntu-20.04, ubuntu-22.04 ] + version: [ latest ] + include: + - { os: ubuntu-24.04, version: '1.3.1' } - name: ${{ matrix.os }} + name: ${{ matrix.os }} (${{ matrix.version }}) runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v4 + with: + version: ${{ matrix.version }} - uses: ./ - run: lavinmq --version - run: systemctl is-active lavinmq.service diff --git a/action.yml b/action.yml index 1b4c398..2017b97 100644 --- a/action.yml +++ b/action.yml @@ -8,6 +8,10 @@ inputs: description: "Name of the environment variable with the LavinMQ URL" required: false default: "AMQP_URL" + version: + description: "The version of LavinMQ to install" + required: false + default: "latest" runs: using: "composite" steps: @@ -20,11 +24,18 @@ runs: - run: sudo apt-get update shell: bash - - run: sudo apt install lavinmq + - name: "Install LavinMQ (${{ inputs.version }})" + run: | + if test "${{ inputs.version }}" = "latest"; + then + sudo apt install lavinmq + else + sudo apt install "lavinmq=${{ inputs.version }}-1" + fi shell: bash - run: sudo systemctl start lavinmq.service shell: bash - run: echo "${{ inputs.env-key }}=amqp://guest:guest@localhost" >> $GITHUB_ENV - shell: bash \ No newline at end of file + shell: bash