asdf-golang/spec/spec_helper.sh
Kenny Parnell 99f0baf0af
Add Specs (#96)
* Initialize shellspec and add to workflow.

* Automatic Yes to shellspec prompts.

* Install and Run ShellSpec as one job.

* Add find to debug action.

* Use shellspec in lib dir.

* Run ShellSpec on matrix

* Add shellspec to it's own workflow.

* Move shellspec.yml back into main.yml because checkout.
2023-05-09 10:39:09 -04:00

25 lines
796 B
Bash

# shellcheck shell=sh
# Defining variables and functions here will affect all specfiles.
# Change shell options inside a function may cause different behavior,
# so it is better to set them here.
# set -eu
# This callback function will be invoked only once before loading specfiles.
spec_helper_precheck() {
# Available functions: info, warn, error, abort, setenv, unsetenv
# Available variables: VERSION, SHELL_TYPE, SHELL_VERSION
: minimum_version "0.28.1"
}
# This callback function will be invoked after a specfile has been loaded.
spec_helper_loaded() {
:
}
# This callback function will be invoked after core modules has been loaded.
spec_helper_configure() {
# Available functions: import, before_each, after_each, before_all, after_all
: import 'support/custom_matcher'
}