From 1afc9a93100bc58ccc2f1d6648716c45ad5059d9 Mon Sep 17 00:00:00 2001 From: Fedor Korotkov Date: Thu, 16 Jul 2026 18:04:17 -0400 Subject: [PATCH] Add required GitHub Actions test check --- .github/workflows/ci.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..4a0c150 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,37 @@ +name: CI + +on: + merge_group: + pull_request: + push: + branches: + - main + workflow_dispatch: + +permissions: + contents: read + +jobs: + test: + name: Test + runs-on: macos-26 + timeout-minutes: 60 + steps: + - uses: actions/checkout@v6 + - uses: actions/setup-go@v6 + with: + go-version-file: integration-tests/go.mod + cache-dependency-path: integration-tests/go.sum + - name: Build + run: swift build --build-system swiftbuild + - name: Run unit tests + run: | + export PATH="$PATH:/usr/sbin" + swift test --build-system swiftbuild + # The Python suite boots Tart VMs, but hosted ARM macOS runners do not support nested virtualization. + - name: Run OpenTelemetry integration tests + run: | + bin_path="$(swift build --build-system swiftbuild --show-bin-path)" + codesign --sign - --entitlements Resources/tart-dev.entitlements --force "$bin_path/tart" + cd integration-tests + PATH="$bin_path:$PATH" go test -v ./...