2024-07-07 16:01:24 +08:00

28 lines
590 B
YAML

name: 'Hello World'
description: 'Greet someone'
inputs:
who-to-greet: # id of input
description: 'Who to greet'
required: true
default: 'World'
runs:
using: "composite"
steps:
- name: Run Nginx server
run: |
docker run -d -p 8080:80 nginx
shell: bash
- name: Wait for Nginx to be up
run: |
until $(curl --output /dev/null --silent --head --fail http://127.0.0.1:8080); do
printf '.'
curl http://127.0.0.1:8080
sleep 1
done
shell: bash
- run: pnpm run test
shell: bash