Skip to content

Testing usage of env.GITHUB_WORKSPACE #290

Testing usage of env.GITHUB_WORKSPACE

Testing usage of env.GITHUB_WORKSPACE #290

Workflow file for this run

---
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:
- ${{ env.GITHUB_WORKSPACE }}/scripts:/opt/scripts

Check failure on line 32 in .github/workflows/tests-shell.yml

View workflow run for this annotation

GitHub Actions / Tests-Shell

Invalid workflow file

The workflow is not valid. .github/workflows/tests-shell.yml (Line: 32, Col: 11): Unrecognized named-value: 'env'. Located at position 1 within expression: env.GITHUB_WORKSPACE
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
with:
path: ${{ env.GITHUB_WORKSPACE }}
- run: find /opt -print
- run: ${{ matrix.test }}
env:
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/scripts:/opt/scripts/py