mirror of
https://github.com/fiatjaf/nak.git
synced 2026-10-30 09:47:32 +00:00
26 lines
687 B
YAML
26 lines
687 B
YAML
name: CI
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches: [master]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-go@v5
|
|
with:
|
|
go-version-file: go.mod
|
|
- run: go build .
|
|
# nak-nodb: no local database at all
|
|
- run: go build -tags nodb -o /tmp/nak-nodb .
|
|
# Existing CLI tests share flag state and include public-relay requests.
|
|
# Keep this regression suite independent of those tests and Go vet's
|
|
# pre-existing non-constant-format diagnostics.
|
|
- run: go test -vet=off . -run 'TestResolvePetname|TestParsePubKey|TestPetnameCLI' -count=1
|