Skip to content
This repository was archived by the owner on Jun 22, 2026. It is now read-only.

Merge pull request #9 from boringcode-dev/release-please--branches--main #28

Merge pull request #9 from boringcode-dev/release-please--branches--main

Merge pull request #9 from boringcode-dev/release-please--branches--main #28

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
tags:
- "v*.*.*"
permissions:
contents: read
jobs:
lint-and-test:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- name: Check gofmt
run: |
files="$(git ls-files '*.go')"
if [ -z "$files" ]; then
exit 0
fi
unformatted="$(gofmt -l $files)"
if [ -n "$unformatted" ]; then
echo "These files are not gofmt-formatted:"
echo "$unformatted"
exit 1
fi
- name: Run tests
run: go test ./...