Skip to content

ops: updating tests #27

ops: updating tests

ops: updating tests #27

Workflow file for this run

name: Build, scan, and publish the image
on:
push:
branches:
- main
tags:
- v*
env:
LOCAL_IMAGE: stern-action:${{ github.sha }}
jobs:
test-bats:
name: Run Bats Tests
runs-on: ubuntu-22.04
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true
- name: Build docker image
run: docker build --pull --tag ${{ env.LOCAL_IMAGE }} ./
- name: Run bats tests
run: |
docker run --rm \
--volume ${PWD}/:/code/ \
--workdir /code/ \
--entrypoint "" \
${{ env.LOCAL_IMAGE }} \
./test/bats/bin/bats ./test/
test-shellcheck:
name: Run Shellcheck
runs-on: ubuntu-22.04
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: ShellCheck
uses: ludeeus/[email protected]
with:
ignore: >-
Dockerfile
test/lib/