Skip to content

Bug-fix /transaction/:txHash endpoint #23024

Bug-fix /transaction/:txHash endpoint

Bug-fix /transaction/:txHash endpoint #23024

name: Build and smoke test
on:
pull_request:
branches: [master, rc/*]
workflow_dispatch:
jobs:
build:
strategy:
matrix:
runs-on: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.runs-on }}
name: Build
steps:
- name: Set up Go 1.20.7
uses: actions/setup-go@v3
with:
go-version: 1.20.7
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Get dependencies
run: |
go get -v -t -d ./...
if [ -f Gopkg.toml ]; then
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
fi
- name: Build
run: |
cd ${GITHUB_WORKSPACE}/cmd/node && go build .
cd ${GITHUB_WORKSPACE}/cmd/seednode && go build .
cd ${GITHUB_WORKSPACE}/cmd/keygenerator && go build .
cd ${GITHUB_WORKSPACE}/cmd/logviewer && go build .
cd ${GITHUB_WORKSPACE}/cmd/termui && go build .
# On GitHub, we only run the short tests, and we only run them for some OS/ARCH combinations.
- name: Run tests
run: |
GOOS=$(go env GOOS)
if [[ "$GOOS" == darwin ]]; then
go test -short -v ./...
fi