Skip to content

test: cover async-profiler JFR start command #677

test: cover async-profiler JFR start command

test: cover async-profiler JFR start command #677

Workflow file for this run

name: Integration smoke test
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
discover:
name: discover tests
runs-on: ubuntu-x64
outputs:
tests: ${{ steps.tests.outputs.tests }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Install Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6
with:
go-version: stable
cache-dependency-path: itest/go.mod
- name: Generate test matrix
id: tests
run: echo "tests=$(make ci-matrix)" >> "$GITHUB_OUTPUT"
test:
name: integration-test ${{ matrix.test }} ${{ matrix.os }} Java ${{ matrix.java_version }}
needs: discover
runs-on: ubuntu-x64
strategy:
fail-fast: false
matrix:
test: ${{ fromJSON(needs.discover.outputs.tests) }}
os: [alpine-3.22, alpine-3.23, ubuntu-22.04, ubuntu-24.04]
java_version: ["8", "11", "17", "21", "25"]
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Install Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6
with:
go-version: stable
cache-dependency-path: itest/go.mod
- name: Resolve OS matrix entry
id: os
run: |
os="${{ matrix.os }}"
distro="${os%%-*}"
version="${os#*-}"
echo "dockerfile=${distro}-test.Dockerfile" >> "$GITHUB_OUTPUT"
echo "image_version=${version}" >> "$GITHUB_OUTPUT"
- name: Run integration test
run: go test -v -timeout 15m -count=1 -run '^${{ matrix.test }}$$' .
working-directory: itest
env:
DOCKERFILE: ${{ steps.os.outputs.dockerfile }}
IMAGE_VERSION: ${{ steps.os.outputs.image_version }}
JAVA_VERSION: ${{ matrix.java_version }}