summaryrefslogtreecommitdiffstats
path: root/pkg/runner/testdata/basic/push.yml
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/runner/testdata/basic/push.yml')
-rw-r--r--pkg/runner/testdata/basic/push.yml40
1 files changed, 40 insertions, 0 deletions
diff --git a/pkg/runner/testdata/basic/push.yml b/pkg/runner/testdata/basic/push.yml
new file mode 100644
index 0000000..35b7821
--- /dev/null
+++ b/pkg/runner/testdata/basic/push.yml
@@ -0,0 +1,40 @@
+name: basic
+on: push
+
+env:
+ TEST: value
+
+jobs:
+ check:
+ runs-on: ubuntu-latest
+ steps:
+ - run: '[[ "$(pwd)" == "${GITHUB_WORKSPACE}" ]]'
+ - run: echo ${{ env.TEST }} | grep value
+ - run: env
+ - uses: docker://node:16-buster-slim
+ with:
+ somekey: ${{ env.TEST }}
+ args: echo ${INPUT_SOMEKEY} | grep somevalue
+ - run: ls
+ - run: echo 'hello world'
+ - run: echo ${GITHUB_SHA} >> $(dirname "${GITHUB_WORKSPACE}")/sha.txt
+ - run: cat $(dirname "${GITHUB_WORKSPACE}")/sha.txt | grep ${GITHUB_SHA}
+ build:
+ runs-on: ubuntu-latest
+ needs: [check]
+ steps:
+ - uses: actions/checkout@v2
+ - uses: ./actions/action1
+ with:
+ args: echo 'build'
+ test:
+ runs-on: ubuntu-latest
+ needs: [build]
+ steps:
+ - uses: docker://node:16-buster-slim
+ with:
+ args: env
+ - uses: docker://node:16-buster-slim
+ with:
+ entrypoint: /bin/echo
+ args: ${{github.event_name}}