mirror of
https://github.com/eth-p/bat-extras.git
synced 2024-12-13 17:50:56 +01:00
90bb604d74
This will eventually replace CircleCI.
34 lines
716 B
YAML
34 lines
716 B
YAML
name: 'Test'
|
|
description: 'Tests bat-extras'
|
|
inputs:
|
|
strict:
|
|
description: 'Tests should be run under strict mode'
|
|
required: false
|
|
default: false
|
|
compiled:
|
|
description: 'Test scripts that have been built'
|
|
required: false
|
|
default: false
|
|
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
|
|
- name: Run tests
|
|
shell: bash
|
|
run: |
|
|
args=()
|
|
|
|
if "${{ inputs.compiled }}"; then
|
|
args+=(--compiled)
|
|
fi
|
|
|
|
if "${{ inputs.strict }}"; then
|
|
args+=(--strict)
|
|
fi
|
|
|
|
cd "${{ github.workspace }}"
|
|
PATH="${{ runner.temp }}/bin:${PATH}"
|
|
bash "${{ github.workspace }}/test.sh" "${args[@]}" \
|
|
--verbose --snapshot:show
|