0ff204b615
Fix localaction tests (missing checkout) Co-authored-by: Ryan (hackercat) <me@hackerc.at> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
39 lines
954 B
YAML
39 lines
954 B
YAML
name: basic
|
|
on: push
|
|
|
|
env:
|
|
TEST: value
|
|
|
|
jobs:
|
|
check:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- run: echo ${{ env.TEST }} | grep value
|
|
- run: env
|
|
- uses: docker://node:12-buster-slim
|
|
with:
|
|
somekey: ${{ env.TEST }}
|
|
args: echo ${INPUT_SOMEKEY} | grep somevalue
|
|
- run: ls
|
|
- run: echo 'hello world'
|
|
- run: echo ${GITHUB_SHA} >> $(dirname "${GITHUB_WORKSPACE}")/sha.txt
|
|
- run: cat $(dirname "${GITHUB_WORKSPACE}")/sha.txt | grep ${GITHUB_SHA}
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
needs: [check]
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: ./actions/action1
|
|
with:
|
|
args: echo 'build'
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
needs: [build]
|
|
steps:
|
|
- uses: docker://node:12-buster-slim
|
|
with:
|
|
args: env
|
|
- uses: docker://node:12-buster-slim
|
|
with:
|
|
entrypoint: /bin/echo
|
|
args: ${{github.event_name}}
|