Skip to content

refactor: add more test for ssh.go #1151

refactor: add more test for ssh.go

refactor: add more test for ssh.go #1151

Workflow file for this run

name: Go
on:
workflow_dispatch:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go-version: [ '1.21', '1.22' ]
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: Build
run: go build -v ./...
working-directory: sztp-agent
- name: Test
run: go test -race -coverprofile=coverage.out -covermode=atomic -v ./...
working-directory: sztp-agent
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3