Skip to content

Add IsConnect method to OpenShowVar and update unit test (stable rele… #3

Add IsConnect method to OpenShowVar and update unit test (stable rele…

Add IsConnect method to OpenShowVar and update unit test (stable rele… #3

Workflow file for this run

name: Unit Tests for go-openshowvar
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Golang
uses: actions/setup-go@v5
with:
go-version: "1.22.2"
- name: Setup Golang caches
uses: actions/cache@v4
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-golang-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-golang-
- name: Install dependencies
run: go mod tidy
- name: Run unit tests
run: go test -v ./tests/unit