summaryrefslogtreecommitdiffstats
path: root/pkg/runner/testdata/workdir
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/runner/testdata/workdir')
-rw-r--r--pkg/runner/testdata/workdir/canary0
l---------pkg/runner/testdata/workdir/canary-link1
-rw-r--r--pkg/runner/testdata/workdir/push.yml34
3 files changed, 35 insertions, 0 deletions
diff --git a/pkg/runner/testdata/workdir/canary b/pkg/runner/testdata/workdir/canary
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/pkg/runner/testdata/workdir/canary
diff --git a/pkg/runner/testdata/workdir/canary-link b/pkg/runner/testdata/workdir/canary-link
new file mode 120000
index 0000000..0c5e42f
--- /dev/null
+++ b/pkg/runner/testdata/workdir/canary-link
@@ -0,0 +1 @@
+canary \ No newline at end of file
diff --git a/pkg/runner/testdata/workdir/push.yml b/pkg/runner/testdata/workdir/push.yml
new file mode 100644
index 0000000..b76a951
--- /dev/null
+++ b/pkg/runner/testdata/workdir/push.yml
@@ -0,0 +1,34 @@
+on: push
+
+defaults:
+ run:
+ working-directory: /tmp
+
+jobs:
+ workdir:
+ runs-on: ubuntu-latest
+ defaults:
+ run:
+ working-directory: /root
+ steps:
+ - run: '[[ "$(pwd)" == "/root" ]]'
+
+ - run: mkdir -p "${GITHUB_WORKSPACE}/workdir"
+
+ - run: '[[ "$(pwd)" == "${GITHUB_WORKSPACE}/workdir" ]]'
+ working-directory: workdir
+
+ top-level-workdir:
+ runs-on: ubuntu-latest
+ steps:
+ - run: '[[ "$(pwd)" == "/tmp" ]]'
+
+ workdir-from-matrix:
+ runs-on: ubuntu-latest
+ strategy:
+ max-parallel: 1
+ matrix:
+ work_dir: ["/tmp", "/root"]
+ steps:
+ - run: '[[ "$(pwd)" == "${{ matrix.work_dir }}" ]]'
+ working-directory: ${{ matrix.work_dir }}