Skip to content

Start on Silo protocol documentation #30

Start on Silo protocol documentation

Start on Silo protocol documentation #30

Workflow file for this run

name: Tests
on:
push:
branches:
- "*"
jobs:
tests:
runs-on: ubuntu-latest
steps:
- id: go-cache-paths
run: |
echo "::set-output name=go-build::$(go env GOCACHE)"
echo "::set-output name=go-mod::$(go env GOMODCACHE)"
- name: Checkout
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.20.2
- name: Go Build Cache
uses: actions/cache@v2
with:
path: ${{ steps.go-cache-paths.outputs.go-build }}
key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }}
- name: Go Mod Cache
uses: actions/cache@v2
with:
path: ${{ steps.go-cache-paths.outputs.go-mod }}
key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }}
- name: Test
run: go test -v $(go list ./... | grep -v expose)
- name: Test with Race Conditions
run: go test -race -v $(go list ./... | grep -v expose)