Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 18 additions & 7 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,35 @@
name: Build & Test

on:
workflow_dispatch:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:

permissions:
contents: read

jobs:
build-and-test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: src
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7

- uses: actions/setup-go@v5
- name: Set up Go
uses: actions/setup-go@v7
with:
go-version-file: src/go.mod
go-version: "1.27.x"
cache-dependency-path: src/go.sum

- name: Build
working-directory: src
run: go build ./...

- name: Test
working-directory: src
run: go test ./...
run: go test -race ./...

- name: Vet
run: go vet ./...
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[![Build & Test](https://github.com/markmnl/fmsgid/actions/workflows/go.yml/badge.svg)](https://github.com/markmnl/fmsgid/actions/workflows/go.yml)
[![Build & Test](https://github.com/markmnl/fmsgid/actions/workflows/go.yml/badge.svg?branch=main)](https://github.com/markmnl/fmsgid/actions/workflows/go.yml?query=branch%3Amain)
[![Go 1.27+](https://img.shields.io/badge/Go-1.27%2B-00ADD8?logo=go&logoColor=white)](https://go.dev/dl/)

# fmsgid

Expand Down Expand Up @@ -26,6 +27,8 @@ FMSGID_CSV_FILE=/path/to/addresses.csv

## Build

Requires Go 1.27 or newer.

From the `src` directory:
```
go build .
Expand Down
2 changes: 1 addition & 1 deletion src/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/markmnl/fmsgid

go 1.25.0
go 1.27.0

require (
github.com/fsnotify/fsnotify v1.9.0
Expand Down