-
-
Notifications
You must be signed in to change notification settings - Fork 83
48 lines (46 loc) · 1.2 KB
/
tests-shell.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
name: Tests-Shell
# yamllint disable-line rule:truthy
on:
pull_request:
paths:
- '**/*.sh'
- '.github/workflows/tests-shell.yml'
push:
paths:
- '**/*.sh'
- '.github/workflows/tests-shell.yml'
jobs:
Test-Scripts:
defaults:
run:
shell: bash
working-directory: scripts/tests
runs-on: ubuntu-latest
container:
env:
OPT_TRACE: ${{ runner.debug }}
OPT_VERBOSE: true
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/scripts:/opt/scripts/py
# Refs: https://stackoverflow.com/q/16818101/55075
WINEPREFIX: /tmp/.wine
image: ea31337/ea-tester:dev
options: --user root
volumes:
- ${{ github.workspace }}/scripts:/opt/scripts
strategy:
matrix:
test:
- ./test_aliases.sh
- ./test_backtest.sh
- ./test_bt_data_gen.sh
- ./test_cmds.sh
- ./test_compile.sh
- ./test_eval.sh
- ./test_vars.sh
steps:
- uses: actions/checkout@v4
env:
# Refs: https://github.com/actions/checkout/issues/956
GIT_CEILING_DIRECTORIES: /__w
- run: ${{ matrix.test }}