From dba91a583ec81497033b3909f3991e025011eb90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Mur=C3=A9?= Date: Tue, 29 Jul 2025 14:04:42 +0200 Subject: [PATCH] add a GHA workflow to run the tests --- .github/workflows/gotest.yml | 27 +++++++++++++++++++++++++++ README.md | 7 ++----- 2 files changed, 29 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/gotest.yml diff --git a/.github/workflows/gotest.yml b/.github/workflows/gotest.yml new file mode 100644 index 0000000..29596d9 --- /dev/null +++ b/.github/workflows/gotest.yml @@ -0,0 +1,27 @@ +on: [push, pull_request] +name: Go Test + +jobs: + unit: + strategy: + fail-fast: false + matrix: + os: [ "ubuntu" ] + go: [ "1.23.x", "1.24.x"] + env: + COVERAGES: "" + runs-on: ${{ matrix.os }}-latest + name: ${{ matrix.os}} (go ${{ matrix.go }}) + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version: ${{ matrix.go }} + - name: Go information + run: | + go version + go env + - name: Run tests + run: go test -v ./... + - name: Check formatted + run: gofmt -l . diff --git a/README.md b/README.md index b47decc..a3284e3 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,6 @@ # go-varsig -`go-varsig` implements the upcoming v1.0.0 release of the [`varsig` specification](https://github.com/ChainAgnostic/varsig/pull/18) -with limited (and soon to be deprecated) support for the `varsig` < v1.0 -specification. This is predominantly included to support the UCAN v1.0 -use-case. +`go-varsig` is a go implementation of the [`varsig` specification](https://github.com/ChainAgnostic/varsig). Built with ❤️ by [Consensys](https://consensys.io/). @@ -51,7 +48,7 @@ simulate the `docker` daemon: export DOCKER_HOST=unix:///var/run/podman/podman.sock ``` -Since there's only one workflow, the simplest command to test it is: +The simplest command to test it is: ```bash act