mirror of https://github.com/nektos/act
38 lines
749 B
YAML
38 lines
749 B
YAML
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
|