util: mark some APIs as deprecated #248
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
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 ./... |