Idk go.sum #53
Workflow file for this run
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: Go tests | |
on: [push, pull_request] | |
permissions: | |
contents: read | |
jobs: | |
test: | |
name: Test | |
strategy: | |
fail-fast: false | |
matrix: | |
go: [1.20.x] | |
os: [ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Install Go ${{ matrix.go }} | |
uses: actions/setup-go@v2 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: add stefanberger/swtpm-jammy | |
run: sudo add-apt-repository ppa:stefanberger/swtpm-jammy | |
- name: Install swtpm | |
run: sudo apt-get install -y swtpm-tools | |
- name: Run tests | |
run: go test -race ./... | |
- name: Run go vet | |
run: go vet ./... | |
- name: staticcheck | |
uses: dominikh/staticcheck-action@v1.3.0 | |
with: | |
install-go: false |