Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 additions & 0 deletions .github/workflows/keystore.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Keystore Checks
permissions:
contents: read

on:
push:
paths:
- "keystore/**"

jobs:
run-tests:
defaults:
run:
working-directory: keystore
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Go
uses: ./.github/actions/setup-go
with:
go-version-file: "go.mod"
restore-build-cache-only: "false"

- name: Build
run: go build -v ./...

- name: Unit Tests
run: go test ./... -coverpkg=./... -coverprofile=coverage.txt
Comment thread Fixed

build-race-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Go
uses: ./.github/actions/setup-go
with:
go-version-file: "go.mod"

- name: Build
run: go build -v ./...

- name: Race Tests
run: GORACE="log_path=$PWD/race" go test -race ./...

- name: Print Races
if: failure()
id: print-races
run: |
find race.* | xargs cat > race.txt
if [[ -s race.txt ]]; then
cat race.txt
fi

- name: Upload Go test results
if: always()
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
with:
name: go-race-results
path: |
./race.*
Loading