summaryrefslogtreecommitdiffstats
path: root/pkg/runner/testdata/commands/push.yml
blob: 96c3b2ead21b6638cdb4b160d8fa9fd428b010e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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
        id: set_output
        run: echo "::set-output name=zoo::zar"

      - run: echo "::add-path::/zip"
      - run: echo $PATH | grep /zip

      - name: TEST conditional
        if: steps.set_output.outputs.zoo
        run: echo "::set-env name=cond_env::foo"
      - name: TEST conditional (cont.)
        run: echo $cond_env | grep foo

      - 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