Skip to content

Commit

Permalink
Refactor test-script.yml to include specific Ubuntu version for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
bengo237 committed Sep 19, 2024
1 parent 384dafb commit 9b09da0
Showing 1 changed file with 3 additions and 19 deletions.
22 changes: 3 additions & 19 deletions .github/workflows/test-script.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 9b09da0

Please sign in to comment.