[Dependabot](deps): Bump go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc from 1.24.0 to 1.31.0 #1024
Workflow file for this run
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: Steampipe plugin SDK acceptance tests | |
on: | |
pull_request: | |
env: | |
STEAMPIPE_UPDATE_CHECK: false | |
jobs: | |
sdkUnitTests: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.22 | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v5 | |
continue-on-error: true # we dont want to enforce just yet | |
with: | |
version: v1.52.2 | |
args: --timeout=15m --config=.golangci.yml | |
- name: Run SDK Unit Tests | |
run: | | |
go clean -testcache | |
go test -timeout 600s ./... -test.v | |
buildChaosPlugin: | |
name: Run chaos acceptance tests | |
needs: sdkUnitTests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.22 | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
path: sdk | |
- name: Checkout Steampipe | |
uses: actions/checkout@v4 | |
with: | |
repository: turbot/steampipe | |
path: steampipe | |
- name: Update go.mod and build Steampipe | |
run: | | |
echo "PATH=$PATH:$HOME/build:/home/runner" >> $GITHUB_ENV | |
cd /home/runner/work/steampipe-plugin-sdk/steampipe-plugin-sdk/steampipe | |
go mod edit -replace github.com/turbot/steampipe-plugin-sdk/v5=/home/runner/work/steampipe-plugin-sdk/steampipe-plugin-sdk/sdk | |
go mod tidy | |
go build -o /home/runner/steampipe | |
- name: Install Chaos plugin from registry | |
run: steampipe plugin install chaos | |
- name: Checkout Chaos plugin | |
uses: actions/checkout@v4 | |
with: | |
repository: turbot/steampipe-plugin-chaos | |
path: steampipe-plugin-chaos | |
submodules: true | |
- name: Update go.mod and build plugin chaos | |
run: | | |
echo "PATH=$PATH:$HOME/build::/home/runner/work/steampipe-plugin-sdk/steampipe-plugin-sdk/steampipe-plugin-chaos/tests/acceptance/lib/bats/libexec" >> $GITHUB_ENV | |
cd /home/runner/work/steampipe-plugin-sdk/steampipe-plugin-sdk/steampipe-plugin-chaos/ | |
go mod edit -replace github.com/turbot/steampipe-plugin-sdk/v5=/home/runner/work/steampipe-plugin-sdk/steampipe-plugin-sdk/sdk | |
go mod tidy | |
make | |
- name: Setup BATS | |
uses: mig4/setup-bats@v1 | |
with: | |
bats-version: 1.2.1 | |
- name: Run Test Suite | |
run: | | |
chmod +x /home/runner/work/steampipe-plugin-sdk/steampipe-plugin-sdk/steampipe-plugin-chaos/tests/acceptance/run.sh | |
/home/runner/work/steampipe-plugin-sdk/steampipe-plugin-sdk/steampipe-plugin-chaos/tests/acceptance/run.sh |