Skip to content

[8.10](backport #3293) skip downgrade test when only one snapshot version is available #1930

[8.10](backport #3293) skip downgrade test when only one snapshot version is available

[8.10](backport #3293) skip downgrade test when only one snapshot version is available #1930

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: Extract Go version from .go-version
run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: "${{ env.GO_VERSION }}"
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 Mage
uses: magefile/mage-action@v2
env:
TEST_COVERAGE: 'true'
with:
version: latest
args: unitTest
- name: Save PR information
run: |
mkdir -p ./pr
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/pull_request*
if-no-files-found: error