1
pkg/runner/testdata/actions/action1/Dockerfile
vendored
Normal file
1
pkg/runner/testdata/actions/action1/Dockerfile
vendored
Normal file
@@ -0,0 +1 @@
|
||||
FROM ubuntu:18.04
|
4
pkg/runner/testdata/actions/action1/action.yml
vendored
Normal file
4
pkg/runner/testdata/actions/action1/action.yml
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
name: 'action1'
|
||||
runs:
|
||||
using: 'docker'
|
||||
image: 'Dockerfile'
|
8
pkg/runner/testdata/actions/docker-local/Dockerfile
vendored
Normal file
8
pkg/runner/testdata/actions/docker-local/Dockerfile
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
# 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
|
||||
|
||||
# Code file to execute when the docker container starts up (`entrypoint.sh`)
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
15
pkg/runner/testdata/actions/docker-local/action.yml
vendored
Normal file
15
pkg/runner/testdata/actions/docker-local/action.yml
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
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 }}
|
5
pkg/runner/testdata/actions/docker-local/entrypoint.sh
vendored
Executable file
5
pkg/runner/testdata/actions/docker-local/entrypoint.sh
vendored
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh -l
|
||||
|
||||
echo "Hello $1"
|
||||
time=$(date)
|
||||
echo ::set-output name=time::$time
|
16
pkg/runner/testdata/actions/docker-url/action.yml
vendored
Normal file
16
pkg/runner/testdata/actions/docker-url/action.yml
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
name: docker-url
|
||||
author: nektos
|
||||
description: testing
|
||||
inputs:
|
||||
who-to-greet:
|
||||
description: who to greet
|
||||
required: true
|
||||
default: World
|
||||
runs:
|
||||
using: docker
|
||||
#image: docker://alpine:3.8
|
||||
image: docker://node:12-alpine
|
||||
env:
|
||||
TEST: enabled
|
||||
args:
|
||||
- env
|
17
pkg/runner/testdata/basic/push.yml
vendored
Normal file
17
pkg/runner/testdata/basic/push.yml
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
name: basic
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: ./actions/action1
|
||||
with:
|
||||
args: echo 'build'
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [build]
|
||||
steps:
|
||||
- uses: docker://ubuntu:18.04
|
||||
with:
|
||||
args: echo ${GITHUB_REF} | grep nektos/act
|
12
pkg/runner/testdata/fail/push.yml
vendored
Normal file
12
pkg/runner/testdata/fail/push.yml
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
name: fail
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: node:10.16-jessie
|
||||
env:
|
||||
TEST_ENV: test-value
|
||||
steps:
|
||||
- run: echo ${TEST_ENV} | grep bazooka
|
12
pkg/runner/testdata/job-container/push.yml
vendored
Normal file
12
pkg/runner/testdata/job-container/push.yml
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
name: job-container
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: node:10.16-jessie
|
||||
env:
|
||||
TEST_ENV: test-value
|
||||
steps:
|
||||
- run: echo ${TEST_ENV} | grep test-value
|
8
pkg/runner/testdata/local-action-docker-url/push.yml
vendored
Normal file
8
pkg/runner/testdata/local-action-docker-url/push.yml
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
name: local-action-docker-url
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: ./actions/docker-url
|
10
pkg/runner/testdata/local-action-dockerfile/push.yml
vendored
Normal file
10
pkg/runner/testdata/local-action-dockerfile/push.yml
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
name: local-action-dockerfile
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: ./actions/docker-local
|
||||
with:
|
||||
who-to-greet: 'Mona the Octocat'
|
10
pkg/runner/testdata/remote-action-docker/push.yml
vendored
Normal file
10
pkg/runner/testdata/remote-action-docker/push.yml
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
name: remote-action-docker
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/hello-world-docker-action@master
|
||||
with:
|
||||
who-to-greet: 'Mona the Octocat'
|
10
pkg/runner/testdata/remote-action-js/push.yml
vendored
Normal file
10
pkg/runner/testdata/remote-action-js/push.yml
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
name: remote-action-js
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/hello-world-javascript-action@master
|
||||
with:
|
||||
who-to-greet: 'Mona the Octocat'
|
8
pkg/runner/testdata/runs-on/push.yml
vendored
Normal file
8
pkg/runner/testdata/runs-on/push.yml
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
name: runs-on
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run: echo ${GITHUB_ACTOR} | grep nektos/act
|
11
pkg/runner/testdata/uses-docker-url/push.yml
vendored
Normal file
11
pkg/runner/testdata/uses-docker-url/push.yml
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
name: uses-docker-url
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: docker://alpine:3.8
|
||||
with:
|
||||
somekey: somevalue
|
||||
args: echo ${INPUT_SOMEKEY} | grep somevalue
|
Reference in New Issue
Block a user