add a GHA workflow to run the tests
This commit is contained in:
27
.github/workflows/gotest.yml
vendored
Normal file
27
.github/workflows/gotest.yml
vendored
Normal file
@@ -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 .
|
||||||
@@ -1,9 +1,6 @@
|
|||||||
# go-varsig
|
# go-varsig
|
||||||
|
|
||||||
`go-varsig` implements the upcoming v1.0.0 release of the [`varsig` specification](https://github.com/ChainAgnostic/varsig/pull/18)
|
`go-varsig` is a go implementation of the [`varsig` specification](https://github.com/ChainAgnostic/varsig).
|
||||||
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.
|
|
||||||
|
|
||||||
Built with ❤️ by [Consensys](https://consensys.io/).
|
Built with ❤️ by [Consensys](https://consensys.io/).
|
||||||
|
|
||||||
@@ -51,7 +48,7 @@ simulate the `docker` daemon:
|
|||||||
export DOCKER_HOST=unix:///var/run/podman/podman.sock
|
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
|
```bash
|
||||||
act
|
act
|
||||||
|
|||||||
Reference in New Issue
Block a user