Skip to content

Merge pull request #68 from shanesmith/trim-underscore-flag #105

Merge pull request #68 from shanesmith/trim-underscore-flag

Merge pull request #68 from shanesmith/trim-underscore-flag #105

Workflow file for this run

name: CI
on: [push, pull_request]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
name: Go test
steps:
- uses: actions/checkout@v4
- name: Get latest Go version
id: gover
run: echo goversion=$(awk -F':|-' '/^FROM golang/ {print $2}' Dockerfile) >> "$GITHUB_OUTPUT"
- name: Setup go
uses: actions/setup-go@v5
with:
go-version: "${{ steps.gover.outputs.goversion }}"
- run: |
go mod download
go test -race -coverprofile=coverage.txt -covermode=atomic