1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-10-10 19:32:04 +00:00

add commands support

Signed-off-by: Casey Lee <cplee@nektos.com>
This commit is contained in:
Casey Lee 2020-02-11 23:38:30 -08:00
parent c44aa2a118
commit c236395c01
12 changed files with 303 additions and 33 deletions

33
act/runner/testdata/commands/push.yml vendored Normal file
View file

@ -0,0 +1,33 @@
name: basic
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: TEST set-env
run: echo "::set-env name=foo::bar"
- name: TEST set-env (cont.)
run: echo $foo | grep bar
- name: TEST set-output
run: echo "::set-output name=zoo::zar"
#- run: echo "::add-path::/zip"
#- run: echo $PATH | grep /zip
- name: TEST debug, warning, error
run: |
echo "::debug file=app.js,line=100,col=20::Hello debug!"
echo "::warning file=app.js,line=100,col=20::Hello warning!"
echo "::error file=app.js,line=100,col=30::Hello error!"
- name: TEST stop-commands
run: |
echo "::stop-commands::my-end-token"
echo "::set-env name=foo::baz"
echo $foo | grep bar
echo "::my-end-token::"
echo "::set-env name=foo::baz"
- name: TEST stop-commands (cont.)
run: echo $foo | grep baz