Update images, fix extrapath (#723)
* fix: typo * fix: remove debug for git references it generates a massive amount of logs * feat: read values from env allows to test act on GHA when it's not a main repo * fix: merge extrapath with PATH * fix(tests): add additional shells for testing * fix(image): update images pin node to major version only, current node version: 12.22.1 replace most images with `node:12-buster-slim` to prevent errors on macOS runner due to DockerHub pull limit replace ocaml image Co-authored-by: Casey Lee <cplee@nektos.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# Container image that runs your code
|
||||
FROM alpine:3.13
|
||||
FROM node:12-buster-slim
|
||||
|
||||
# Copies your code file from your action repository to the filesystem path `/` of the container
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
|
@@ -8,9 +8,8 @@ inputs:
|
||||
default: World
|
||||
runs:
|
||||
using: docker
|
||||
#image: docker://alpine:3.13
|
||||
image: docker://node:12-alpine
|
||||
image: docker://node:12-buster-slim
|
||||
env:
|
||||
TEST: enabled
|
||||
args:
|
||||
- env
|
||||
args:
|
||||
- env
|
||||
|
8
pkg/runner/testdata/basic/push.yml
vendored
8
pkg/runner/testdata/basic/push.yml
vendored
@@ -10,12 +10,12 @@ jobs:
|
||||
steps:
|
||||
- run: echo ${{ env.TEST }} | grep value
|
||||
- run: env
|
||||
- uses: docker://alpine:3.13
|
||||
- uses: docker://node:12-buster-slim
|
||||
with:
|
||||
somekey: ${{ env.TEST }}
|
||||
args: echo ${INPUT_SOMEKEY} | grep somevalue
|
||||
- run: ls
|
||||
- run: echo 'hello world'
|
||||
- run: echo 'hello world'
|
||||
- run: echo ${GITHUB_SHA} >> $(dirname "${GITHUB_WORKSPACE}")/sha.txt
|
||||
- run: cat $(dirname "${GITHUB_WORKSPACE}")/sha.txt | grep ${GITHUB_SHA}
|
||||
build:
|
||||
@@ -29,10 +29,10 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [build]
|
||||
steps:
|
||||
- uses: docker://ubuntu:18.04
|
||||
- uses: docker://node:12-buster-slim
|
||||
with:
|
||||
args: env
|
||||
- uses: docker://ubuntu:18.04
|
||||
- uses: docker://node:12-buster-slim
|
||||
with:
|
||||
entrypoint: /bin/echo
|
||||
args: ${{github.event_name}}
|
||||
|
4
pkg/runner/testdata/commands/push.yml
vendored
4
pkg/runner/testdata/commands/push.yml
vendored
@@ -14,8 +14,8 @@ jobs:
|
||||
id: set_output
|
||||
run: echo "::set-output name=zoo::zar"
|
||||
|
||||
#- run: echo "::add-path::/zip"
|
||||
#- run: echo $PATH | grep /zip
|
||||
- run: echo "::add-path::/zip"
|
||||
- run: echo $PATH | grep /zip
|
||||
|
||||
- name: TEST conditional
|
||||
if: steps.set_output.outputs.zoo
|
||||
|
4
pkg/runner/testdata/fail/push.yml
vendored
4
pkg/runner/testdata/fail/push.yml
vendored
@@ -4,8 +4,8 @@ on: push
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: node:12.20.1-buster
|
||||
container:
|
||||
image: node:12-buster-slim
|
||||
env:
|
||||
TEST_ENV: test-value
|
||||
steps:
|
||||
|
@@ -4,7 +4,7 @@ on: push
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: ocaml/opam2:debian-9-opam
|
||||
container:
|
||||
image: ghcr.io/catthehacker/ubuntu:runner-latest # image with user 'runner:runner' built on tag 'act-latest'
|
||||
steps:
|
||||
- run: echo PASS
|
||||
|
6
pkg/runner/testdata/job-container/push.yml
vendored
6
pkg/runner/testdata/job-container/push.yml
vendored
@@ -4,8 +4,8 @@ on: push
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: node:12.20.1-buster
|
||||
container:
|
||||
image: node:12-buster-slim
|
||||
env:
|
||||
TEST_ENV: test-value
|
||||
steps:
|
||||
@@ -13,7 +13,7 @@ jobs:
|
||||
|
||||
test2:
|
||||
runs-on: ubuntu-latest
|
||||
container: node:12.20.1-buster
|
||||
container: node:12-buster-slim
|
||||
steps:
|
||||
- run: echo ${TEST_ENV} | grep test-value
|
||||
env:
|
||||
|
2
pkg/runner/testdata/parallel/push.yml
vendored
2
pkg/runner/testdata/parallel/push.yml
vendored
@@ -15,7 +15,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [build]
|
||||
steps:
|
||||
- uses: docker://ubuntu:18.04
|
||||
- uses: docker://node:12-buster-slim
|
||||
with:
|
||||
args: echo ${GITHUB_REF} | grep nektos/act
|
||||
- uses: ./actions/docker-url
|
||||
|
10
pkg/runner/testdata/shells/bash/push.yml
vendored
Normal file
10
pkg/runner/testdata/shells/bash/push.yml
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
on: push
|
||||
jobs:
|
||||
check:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- shell: bash
|
||||
run: |
|
||||
if [[ -n "$PATH" ]] ; then
|
||||
echo "I'm Bash!"
|
||||
fi
|
@@ -1,12 +1,8 @@
|
||||
name: powershell
|
||||
on: push
|
||||
|
||||
env:
|
||||
TEST: value
|
||||
jobs:
|
||||
check:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- shell: pwsh
|
||||
run: |
|
||||
echo "hello test"
|
||||
$PSVersionTable
|
9
pkg/runner/testdata/shells/python/push.yml
vendored
Normal file
9
pkg/runner/testdata/shells/python/push.yml
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
on: push
|
||||
jobs:
|
||||
check:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- shell: python
|
||||
run: |
|
||||
import platform
|
||||
print(platform.python_version())
|
10
pkg/runner/testdata/shells/sh/push.yml
vendored
Normal file
10
pkg/runner/testdata/shells/sh/push.yml
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
on: push
|
||||
jobs:
|
||||
check:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- shell: sh
|
||||
run: |
|
||||
if [ -n "$PATH" ] ; then
|
||||
echo "I'm sh!"
|
||||
fi
|
8
pkg/runner/testdata/uses-docker-url/push.yml
vendored
8
pkg/runner/testdata/uses-docker-url/push.yml
vendored
@@ -5,7 +5,7 @@ jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: docker://alpine:3.13
|
||||
with:
|
||||
somekey: somevalue
|
||||
args: echo ${INPUT_SOMEKEY} | grep somevalue
|
||||
- uses: docker://node:12-buster-slim
|
||||
with:
|
||||
somekey: somevalue
|
||||
args: echo ${INPUT_SOMEKEY} | grep somevalue
|
||||
|
Reference in New Issue
Block a user