Skip to content

Include* fragments

Include* fragments #67

Workflow file for this run

name: Go
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
go: ['1.23', '1.22']
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- name: Install Go Imports
run: go install golang.org/x/tools/cmd/goimports@latest
- name: Build
run: go install
- name: Test
run: |
go test -v -cover ./... -coverprofile coverage.out -coverpkg ./...
- name: Upload coverage to Codecov
if: ${{ runner.os == 'Linux' && matrix.go == '1.23' }}
run: bash <(curl -s https://codecov.io/bash)