From 9b09da0393af7c94687a04a07fe7af5f88f2a374 Mon Sep 17 00:00:00 2001 From: Dylane Bengono Date: Thu, 19 Sep 2024 17:40:39 +0100 Subject: [PATCH] Refactor test-script.yml to include specific Ubuntu version for testing --- .github/workflows/test-script.yml | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) diff --git a/.github/workflows/test-script.yml b/.github/workflows/test-script.yml index 999fcc4..4a23546 100644 --- a/.github/workflows/test-script.yml +++ b/.github/workflows/test-script.yml @@ -4,24 +4,8 @@ on: [ push, pull_request ] jobs: test_script_linux: - name: Test install script on Linux ${{ matrix.os }}, ${{ matrix.version }} + name: Test install script on Ubuntu runs-on: ubuntu-latest - strategy: - matrix: - include: - - os: ubuntu - version: latest - - os: ubuntu - version: jammy - - os: ubuntu - version: focal - - os: ubuntu - version: noble - - - os: debian - version: latest - - os: debian - version: buster steps: - name: Checkout code uses: actions/checkout@v4 @@ -37,8 +21,8 @@ jobs: platforms: ${{ steps.qemu.outputs.platforms }} - name: Pull without cache - run: docker pull ghcr.io/stephane-segning/bats-docker:${{ matrix.os }}-${{ matrix.version }} + run: docker pull ghcr.io/stephane-segning/bats-docker:ubuntu-latest - name: Test script run: | - docker run --rm -v "$PWD:/app" ghcr.io/stephane-segning/bats-docker:${{ matrix.os }}-${{ matrix.version }} bats /app/scripts/tests/test-script.bats + docker run --rm -v "$PWD:/app" ghcr.io/stephane-segning/bats-docker:ubuntu-latest bats /app/scripts/tests/test-script.bats