a53a1c2000
* test: define test case of path issues Test case for #1528 * test: add multi arch grep * fix: Always use current ExtraPath * replace setup-node with run step * Update push.yml * yaml mistake Co-authored-by: Markus Wolf <mail@markus-wolf.de> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
YAML
name: path tests
|
|
on: push
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: "Append to $GITHUB_PATH"
|
|
run: |
|
|
echo "/opt/hostedtoolcache/node/18.99/x64/bin" >> $GITHUB_PATH
|
|
|
|
- name: test path (after setup)
|
|
run: |
|
|
if ! echo "$PATH" |grep "/opt/hostedtoolcache/node/18.*/\(x64\|arm64\)/bin" ; then
|
|
echo "Node binaries not in path: $PATH"
|
|
exit 1
|
|
fi
|
|
|
|
- id: action-with-output
|
|
uses: ./path-handling/
|
|
|
|
- name: test path (after local action)
|
|
run: |
|
|
if ! echo "$PATH" |grep "/opt/hostedtoolcache/node/18.*/\(x64\|arm64\)/bin" ; then
|
|
echo "Node binaries not in path: $PATH"
|
|
exit 1
|
|
fi
|
|
|
|
- uses: nektos/act-test-actions/composite@main
|
|
with:
|
|
input: some input
|
|
|
|
- name: test path (after remote action)
|
|
run: |
|
|
if ! echo "$PATH" |grep "/opt/hostedtoolcache/node/18.*/\(x64\|arm64\)/bin" ; then
|
|
echo "Node binaries not in path: $PATH"
|
|
exit 1
|
|
fi
|