Skip to content

[updatecli] update elastic stack version for testing 8.10.3-a2f2d849-SNAPSHOT #1077

[updatecli] update elastic stack version for testing 8.10.3-a2f2d849-SNAPSHOT

[updatecli] update elastic stack version for testing 8.10.3-a2f2d849-SNAPSHOT #1077

Workflow file for this run

name: CodeCoverage Build
on:
pull_request:
jobs:
coverage:
name: CodeCoverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version-file: 'go.mod'
cache: true
- name: Go cache
uses: actions/cache@v3
with:
# In order:
# * Module download cache
# * Build cache (Linux)
path: |
~/go/pkg/mod
key: ${{ runner.os }}-go-cache-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-cache
- name: Run Unit tests
env:
TEST_COVERAGE: 'true'
run: |
make test-unit junit-report
- name: Save PR information
run: |
echo ${{ github.event.number }} > ./build/pull_request_number
echo ${{ github.event.pull_request.base.ref }} > ./build/pull_request_base
echo ${{ github.event.pull_request.head.ref }} > ./build/pull_request_branch
- uses: actions/upload-artifact@v3
with:
name: test-coverage
path: |
build/TEST-*
build/*.out
build/*.xml
build/pull*
if-no-files-found: error