summaryrefslogtreecommitdiffstats
path: root/pkg/runner/testdata/shells/bash/push.yml
blob: 49704b2b071c45823c6250455e1c58d021047aa5 (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
on: push
env:
  MY_SHELL: bash
jobs:
  check:
    runs-on: ubuntu-latest
    steps:
      - shell: ${{ env.MY_SHELL }}
        run: |
          if [[ -n "$BASH" ]]; then
            echo "I'm $BASH!"
          else
            exit 1
          fi
  check-container:
    runs-on: ubuntu-latest
    container: node:16-buster-slim
    steps:
      - shell: ${{ env.MY_SHELL }}
        run: |
          if [[ -n "$BASH" ]]; then
            echo "I'm $BASH!"
          else
            exit 1
          fi
  check-job-default:
    runs-on: ubuntu-latest
    defaults:
      run:
        shell: ${{ env.MY_SHELL }}
    steps:
      - run: |
          if [[ -n "$BASH" ]]; then
            echo "I'm $BASH!"
          else
            exit 1
          fi