Skip to content

cns: Support encryption/re-encryption of volumes #2135

cns: Support encryption/re-encryption of volumes

cns: Support encryption/re-encryption of volumes #2135

# Copyright (c) 2021 VMware, Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Unit Tests
on:
push:
branches: [ 'main' ]
pull_request:
branches: [ 'main' ]
jobs:
go-tests:
name: Run Unit Tests
strategy:
matrix:
go-version: ["1.22", "1.23"]
platform: ["ubuntu-20.04"]
fail-fast: false
runs-on: ${{ matrix.platform }}
timeout-minutes: 10
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Go ${{ matrix.go-version }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
id: go
- name: Restore Go cache
uses: actions/cache@v4
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-${{ matrix.go-version }}-
- name: Run Tests
env:
TEST_COUNT: 1
TEST_RACE_HISTORY_SIZE: 5
TEST_TIMEOUT: 5m
TEST_OPTS: ""
run: make go-test
- name: Debug with tmate on failure
if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3