2020-02-10 17:27:05 -06:00
|
|
|
name: basic
|
|
|
|
on: push
|
|
|
|
|
2020-03-06 15:39:01 -06:00
|
|
|
env:
|
|
|
|
TEST: value
|
|
|
|
|
2020-02-10 17:27:05 -06:00
|
|
|
jobs:
|
2020-02-19 21:16:40 -06:00
|
|
|
check:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2021-08-10 14:40:20 -05:00
|
|
|
- run: '[[ "$(pwd)" == "${GITHUB_WORKSPACE}" ]]'
|
2020-03-06 15:39:01 -06:00
|
|
|
- run: echo ${{ env.TEST }} | grep value
|
|
|
|
- run: env
|
2021-06-10 18:12:05 -05:00
|
|
|
- uses: docker://node:12-buster-slim
|
2020-03-06 15:39:01 -06:00
|
|
|
with:
|
|
|
|
somekey: ${{ env.TEST }}
|
|
|
|
args: echo ${INPUT_SOMEKEY} | grep somevalue
|
2020-02-24 19:48:21 -06:00
|
|
|
- run: ls
|
2021-06-10 18:12:05 -05:00
|
|
|
- run: echo 'hello world'
|
2021-03-28 23:32:45 -05:00
|
|
|
- run: echo ${GITHUB_SHA} >> $(dirname "${GITHUB_WORKSPACE}")/sha.txt
|
|
|
|
- run: cat $(dirname "${GITHUB_WORKSPACE}")/sha.txt | grep ${GITHUB_SHA}
|
2020-02-10 17:27:05 -06:00
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
2020-02-19 21:16:40 -06:00
|
|
|
needs: [check]
|
2020-02-10 17:27:05 -06:00
|
|
|
steps:
|
2021-08-03 12:39:56 -05:00
|
|
|
- uses: actions/checkout@v2
|
2020-02-10 17:27:05 -06:00
|
|
|
- uses: ./actions/action1
|
|
|
|
with:
|
|
|
|
args: echo 'build'
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
needs: [build]
|
|
|
|
steps:
|
2021-06-10 18:12:05 -05:00
|
|
|
- uses: docker://node:12-buster-slim
|
2020-02-10 17:27:05 -06:00
|
|
|
with:
|
2020-02-23 17:01:25 -06:00
|
|
|
args: env
|
2021-06-10 18:12:05 -05:00
|
|
|
- uses: docker://node:12-buster-slim
|
2020-02-23 17:01:25 -06:00
|
|
|
with:
|
|
|
|
entrypoint: /bin/echo
|
|
|
|
args: ${{github.event_name}}
|