feat: add csphere_http port detection (#119) #160
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Go | |
on: | |
workflow_dispatch: | |
push: | |
branches: [main] | |
tags: | |
- "v*" | |
pull_request: | |
branches: [main] | |
jobs: | |
go: | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout your project with git | |
- name: Checkout | |
uses: actions/checkout@v4 | |
# Install Go on the VM running the action. | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: "^1.22" | |
# Install gotestfmt on the VM running the action. | |
- name: Set up gotestfmt | |
run: go install github.com/gotesttools/gotestfmt/v2/cmd/gotestfmt@v2 | |
# Run tests with nice formatting. Save the original log in /tmp/gotest.log | |
- name: Run tests | |
run: | | |
set -euo pipefail | |
go test -json -fullpath -race -v ./... 2>&1 | tee /tmp/gotest.log | gotestfmt -hide all | |
# Upload the original go test log as an artifact for later review. | |
- name: Upload test log | |
uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: test-log | |
path: /tmp/gotest.log | |
if-no-files-found: error |