Skip to content

fix tests

fix tests #75

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Go
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22'
- name: Build
run: go build -v ./...
- name: Test
run: go test -v -race -covermode atomic -coverprofile=profile.cov ./...
- name: Build structargs
working-directory: ./sq/structargs
run: go build -v ./...
- name: Test structargs
working-directory: ./sq/structargs
run: go test -v ./...
- name: Build reflectxargs
working-directory: ./sq/reflectxargs
run: go build -v ./...
- name: Test reflectxargs
working-directory: ./sq/reflectxargs
run: go test -v ./...
- name: Upload coverage
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: profile.cov