diff --git a/.github/actions/build-evmone-coverage/Dockerfile b/.github/actions/build-evmone-coverage/Dockerfile new file mode 100644 index 0000000000..747241f379 --- /dev/null +++ b/.github/actions/build-evmone-coverage/Dockerfile @@ -0,0 +1,9 @@ +# Container image that runs your code +FROM alpine:3.10 + +# Copies your code file from your action repository to the filesystem path `/` of the container +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + +# Code file to execute when the docker container starts up (`entrypoint.sh`) +ENTRYPOINT ["/entrypoint.sh"] diff --git a/.github/actions/build-evmone-coverage/action.yaml b/.github/actions/build-evmone-coverage/action.yaml new file mode 100644 index 0000000000..782c83020b --- /dev/null +++ b/.github/actions/build-evmone-coverage/action.yaml @@ -0,0 +1,16 @@ +# action.yml +name: 'Hello World' +description: 'Greet someone and record the time' +inputs: + who-to-greet: # id of input + description: 'Who to greet' + required: true + default: 'World' +outputs: + time: # id of output + description: 'The time we greeted you' +runs: + using: 'docker' + image: 'Dockerfile' + args: + - ${{ inputs.who-to-greet }} diff --git a/.github/actions/build-evmone-coverage/entrypoint.sh b/.github/actions/build-evmone-coverage/entrypoint.sh new file mode 100755 index 0000000000..3fee027dff --- /dev/null +++ b/.github/actions/build-evmone-coverage/entrypoint.sh @@ -0,0 +1,5 @@ +#!/bin/sh -l + +echo "Hello $1" +time=$(date) +echo "time=$time" >> $GITHUB_OUTPUT diff --git a/.github/workflows/coverage.yaml b/.github/workflows/coverage.yaml index ac10d6d408..a7cd5dcb14 100644 --- a/.github/workflows/coverage.yaml +++ b/.github/workflows/coverage.yaml @@ -26,6 +26,7 @@ jobs: - name: Fetch target branch run: git fetch origin ${{ github.base_ref }}:refs/remotes/origin/${{ github.base_ref }} + - name: Install deps run: | echo $(pwd)