Skip to content

util: mark some APIs as deprecated #248

util: mark some APIs as deprecated

util: mark some APIs as deprecated #248

Workflow file for this run

name: Tests
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
tests:
runs-on: ubuntu-20.04
strategy:
matrix:
goversion:
- 1.18
# TODO: enable stable, right now tests fails there, see
# https://github.com/snapcore/secboot/pull/259
# - stable
steps:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.goversion }}
- name: Install dependencies
run: |
sudo snap install core core18
sudo snap install --edge tpm2-simulator-chrisccoulson
- name: Checkout code
uses: actions/checkout@v3
- name: Cache Go dependencies
id: cache-go-modules
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Build
run: go build -v -mod=readonly ./...
- name: Test
run: go test -v -race -p 1 -mod=readonly ./... -args -use-mssim
- name: Go vet
run: go vet ./...