Skip to content

Refactor test-script.yml to include specific Ubuntu and Debian versio… #19

Refactor test-script.yml to include specific Ubuntu and Debian versio…

Refactor test-script.yml to include specific Ubuntu and Debian versio… #19

Workflow file for this run

name: Test install script
on: [ push, pull_request ]
jobs:
test_script_linux:
name: Test install script on Linux ${{ matrix.os }}, ${{ matrix.version }}
runs-on: ubuntu-latest
strategy:
matrix:
include:

Check failure on line 11 in .github/workflows/test-script.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test-script.yml

Invalid workflow file

You have an error in your yaml syntax on line 11
- 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
- name: QEMU
id: qemu
uses: docker/setup-qemu-action@v3
- name: Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
with:
platforms: ${{ steps.qemu.outputs.platforms }}
- name: Pull without cache
run: docker pull ghcr.io/stephane-segning/bats-docker:${{ matrix.os }}-${{ matrix.version }}
- 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