-
Notifications
You must be signed in to change notification settings - Fork 73
52 lines (50 loc) · 1.46 KB
/
pull-request-installer.yaml
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
50
51
52
name: Installer Pull Request
on:
push:
branches: [main]
pull_request:
jobs:
custom-version:
name: Custom Version
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- run: |
curl -L https://raw.githubusercontent.com/kubeshop/tracetest/${GITHUB_SHA}/install-cli.sh | bash -s -- v0.12.0
set +e
tracetest version > /tmp/version 2>&1
cat /tmp/version
cat /tmp/version | grep "CLI: v0.12.0"
exit $?
linux:
name: Linux
strategy:
matrix:
distro: [ubuntu, fedora, alpine]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: ${{ matrix.distro }}
uses: addnab/docker-run-action@v3
with:
image: ${{matrix.distro}}
options: -v ${{ github.workspace }}:/app -e GITHUB_SHA
run: |
# certificates for raw.githubusercontent.com are not validated when running from docker for some reason
echo insecure >> ~/.curlrc
case "${{ matrix.distro }}" in
ubuntu)
apt-get update -q -y
apt-get install -q -y curl
;;
fedora)
yum install -y wget curl --refresh
;;
alpine)
apk add --update wget curl bash
;;
esac
curl -L https://raw.githubusercontent.com/kubeshop/tracetest/${GITHUB_SHA}/install-cli.sh | bash
tracetest