summaryrefslogtreecommitdiffstats
path: root/pkg/runner/testdata/path-handling
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/runner/testdata/path-handling')
-rw-r--r--pkg/runner/testdata/path-handling/action.yml21
-rw-r--r--pkg/runner/testdata/path-handling/push.yml39
2 files changed, 60 insertions, 0 deletions
diff --git a/pkg/runner/testdata/path-handling/action.yml b/pkg/runner/testdata/path-handling/action.yml
new file mode 100644
index 0000000..8db98c5
--- /dev/null
+++ b/pkg/runner/testdata/path-handling/action.yml
@@ -0,0 +1,21 @@
+name: output action
+description: output action
+
+inputs:
+ input:
+ description: some input
+ required: false
+
+outputs:
+ job-output:
+ description: some output
+ value: ${{ steps.gen-out.outputs.step-output }}
+
+runs:
+ using: composite
+ steps:
+ - name: run step
+ id: gen-out
+ run: |
+ echo "::set-output name=step-output::"
+ shell: bash
diff --git a/pkg/runner/testdata/path-handling/push.yml b/pkg/runner/testdata/path-handling/push.yml
new file mode 100644
index 0000000..812c8b8
--- /dev/null
+++ b/pkg/runner/testdata/path-handling/push.yml
@@ -0,0 +1,39 @@
+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