Skip to content

#patch: Bump go.opentelemetry.io/contrib/detectors/aws/ecs from 1.30.0 to 1.34.0 #126

#patch: Bump go.opentelemetry.io/contrib/detectors/aws/ecs from 1.30.0 to 1.34.0

#patch: Bump go.opentelemetry.io/contrib/detectors/aws/ecs from 1.30.0 to 1.34.0 #126

Workflow file for this run

name: Build & Test
on:
pull_request:
branches:
- main
push:
branches:
- main
workflow_dispatch:
defaults:
run:
shell: bash
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v2
with:
go-version: '1.22'
- name: Cache modules
uses: actions/cache@v4
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Install modules
run: |
go mod download
- name: Setup gotestsum
uses: autero1/[email protected]
with:
gotestsum_version: 1.6.4
- run: mkdir -p /tmp/test-results
- name: Run Tests
run: |
gotestsum --junitfile /tmp/test-results/unit-tests.xml -- ./... -coverprofile=/tmp/test-coverage.txt
- name: Upload Code Coverage
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: /tmp/test-coverage.txt
fail_ci_if_error: true
verbose: true
tag:
name: "Tag Version"
runs-on: ubuntu-latest
outputs:
branch: ${{ steps.set-outputs.outputs.branch }}
tag: ${{ steps.bump_version.outputs.tag }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: "0"
- name: Extract branch name
run: |
if [ "$GITHUB_EVENT_NAME" == "push" ]; then
echo BRANCH_NAME=main >> $GITHUB_ENV
else
echo BRANCH_NAME=${{ github.head_ref }} >> $GITHUB_ENV
fi
id: extract_branch
- name: Bump version
if: github.actor != 'dependabot[bot]'
id: bump_version
uses: anothrNick/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
INITIAL_VERSION: 1.0.0
DEFAULT_BUMP: minor
PRERELEASE_SUFFIX: ${{ env.BRANCH_NAME }}
RELEASE_BRANCHES: main
WITH_V: true