Skip to content

feat(core): enhancements to platform lib interface and implementers #38

feat(core): enhancements to platform lib interface and implementers

feat(core): enhancements to platform lib interface and implementers #38

Workflow file for this run

name: 'CI'
on:
pull_request:
branches:
- main
paths-ignore:
- '**/*.yaml'
- '**/*.md'
- LICENSE
- CODEOWNERS
- '.gitignore'
jobs:
govulncheck:
runs-on: ubuntu-latest
name: Run govulncheck
steps:
- id: govulncheck
uses: golang/govulncheck-action@v1
with:
go-version-file: go.mod
go-package: ./...
golangci:
name: lint
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version-file: 'go.mod'
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1
with:
version: v1.60.3
# Optional: golangci-lint command line arguments.
args: --timeout=10m --out-format=colored-line-number
tests:
name: unit and integration tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
with:
go-version-file: 'go.mod'
cache: false
- name: Install gnome-keyring
run: sudo apt-get update && sudo apt-get install -y gnome-keyring
# Keyring is used by the tool and therefore within tests.
# The keyring is unlocked with a dummy password as it is not actually used in the CI
# pipeline for sensitive data, just as a dependency of the library and its tests.
- name: Unit Tests with the Go CLI
run: |
echo 'somecredstorepass' | gnome-keyring-daemon --unlock
go test ./... -short -race -cover