Refactor test-script.bats to remove unnecessary use of 'sudo' in inst… #22
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |