summaryrefslogtreecommitdiffstats
path: root/pkg/runner/testdata/path-handling/push.yml
blob: 812c8b8a289db7d3340ed7d04f4f33e91b0832aa (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
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