-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
49 lines (42 loc) · 1.41 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Copyright (2024) Aquia, Inc.
# https://www.aquia.us
name: "Emberfall"
description: "HTTP Smoke testing made easy!"
inputs:
version:
description: "Emberfall version"
required: true
config:
description: "Emberfall tests config in YAML format"
required: true
runs:
using: "composite"
steps:
- name: Download emberfall
shell: bash
id: download
env:
VERSION: ${{ inputs.version }}
run: |
if [ ${{ runner.arch }} = "ARM64" ]; then
EF_ARCH="arm64"
elif [ ${{ runner.arch }} = "X86" ]; then
EF_ARCH="i386"
elif [ ${{ runner.arch }} = "X64" ]; then
EF_ARCH="x86_64"
fi
EF_OS="${{ runner.os }}"
if [ ${{ runner.os }} == "macOS" ]; then
EF_OS="Darwin"
fi
URL="https://github.com/aquia-inc/emberfall/releases/download/v${VERSION}/emberfall_${EF_OS}_${EF_ARCH}.tar.gz"
echo "Downloading $URL"
curl -H user-agent:emberfall-github-action -L "$URL" -o emberfall.tgz --max-time 300 --fail
tar -C /tmp -xzf emberfall.tgz
rm emberfall.tgz
sudo mv /tmp/emberfall /usr/bin
- name: Start emberfall
shell: bash
run: |
echo "${{ inputs.config }}" > ./emberfallconfig.yml
emberfall --config ./emberfallconfig.yml