Skip to content
This repository has been archived by the owner on Dec 26, 2023. It is now read-only.

feat: remove sudo if inside home directory, add cache for bats-libs, add outputs #88

feat: remove sudo if inside home directory, add cache for bats-libs, add outputs

feat: remove sudo if inside home directory, add cache for bats-libs, add outputs #88

name: "Test local with conditionals"
on:
workflow_dispatch:
pull_request:
release:
types: [published]
push:
branches: ["main"]
tags: ["*"]
jobs:
local_test_options:
runs-on: ubuntu-latest
env:
BATS_LIB_PATH: "/usr/lib"
TERM: xterm
name: local with options
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Bats and Bats libs
uses: ./
with:
bats-version: 1.9.0
support-clean: "false"
assert-clean: "false"
detik-install: "true"
file-install: "true"
- name: Execute test to check Bats-support
run: |
cd /tmp/bats-support/
bats test
- name: Execute test to check Bats-assert
run: |
cd /tmp/bats-assert/
bats test
- name: Execute example tests
run:
bats -T -p tests