mirror of
https://github.com/msojocs/wx-compiler.git
synced 2025-07-19 00:00:04 +08:00
28 lines
590 B
YAML
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
|