feat: enable config v2 for activation from console #2258
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
#********************************************************************* | |
# Copyright (c) Intel Corporation 2021 | |
# SPDX-License-Identifier: Apache-2.0 | |
#*********************************************************************/ | |
name: CI | |
# Controls when the action will run. | |
on: | |
# Triggers the workflow on push or pull request events but only for the master branch | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
permissions: | |
contents: read | |
jobs: | |
# This workflow contains a single job called "build" | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [windows-2019, windows-2022, ubuntu-22.04, ubuntu-20.04] | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- name: Harden Runner | |
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1 | |
with: | |
egress-policy: audit | |
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 | |
- name: Format | |
if: ${{ matrix.os == 'ubuntu-20.04' }} | |
run: if [ "$(gofmt -s -l . | wc -l)" -gt 0 ]; then exit 1; fi | |
- name: Run go vet | |
run: go vet ./... | |
- name: Install Test Converter and run tests | |
if: ${{ matrix.os == 'ubuntu-20.04' }} | |
run: | | |
export GOPATH="$HOME/go/" | |
export PATH=$PATH:$GOPATH/bin | |
go install github.com/jstemmer/go-junit-report/v2@latest | |
go test -v 2>&1 ./... | go-junit-report -set-exit-code > rpc-go-unit.xml | |
- name: run the tests with coverage | |
run: go test ./... -coverprofile=coverage.out -covermode=atomic | |
- uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4.6.0 | |
if: ${{ matrix.os == 'ubuntu-20.04' }} | |
name: Upload Coverage Results | |
# Runs a single command using the runners shell | |
- name: build go | |
if: ${{ matrix.os == 'windows-2019' }} | |
run: go build -o rpc.exe ./cmd | |
# Runs a single command using the runners shell | |
- name: build go | |
if: ${{ matrix.os != 'windows-2019' }} | |
run: go build -o rpc ./cmd | |
- name: GitHub Upload Release Artifacts | |
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 | |
if: ${{ matrix.os == 'ubuntu-20.04' }} | |
with: | |
name: rpc-go-unit | |
path: rpc-go-unit.xml | |