Skip to content

Refactor test-script.bats to remove unnecessary use of 'sudo' in inst… #22

Refactor test-script.bats to remove unnecessary use of 'sudo' in inst…

Refactor test-script.bats to remove unnecessary use of 'sudo' in inst… #22

Workflow file for this run

name: Test install script
on: [ push, pull_request ]
jobs:
test_script_linux:
name: Test install script on Ubuntu
runs-on: ubuntu-latest
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:ubuntu-latest
- name: Test script
run: |
docker run --rm -v "$PWD:/app" ghcr.io/stephane-segning/bats-docker:ubuntu-latest bats /app/scripts/tests/test-script.bats