examples(next+node): basic app with zero-code instrumentation #3726
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |