- Remove all repository URLs from README (users are already in repo) - Clarify CI uses Ubuntu for testing only, not Ubuntu-specific - Remove duplicate clipboard prerequisite line - Use placeholder <repository-url> in install docs
44 lines
900 B
YAML
44 lines
900 B
YAML
name: Build and Test
|
|
|
|
on:
|
|
push:
|
|
branches: [ main, master ]
|
|
pull_request:
|
|
branches: [ main, master ]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest # CI testing platform only - program works on any Linux/Unix distro
|
|
strategy:
|
|
matrix:
|
|
go-version: ['1.21', '1.22']
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: ${{ matrix.go-version }}
|
|
|
|
- name: Verify dependencies
|
|
run: go mod verify
|
|
|
|
- name: Download dependencies
|
|
run: go mod download
|
|
|
|
- name: Build
|
|
run: go build -v -o passage .
|
|
|
|
- name: Test
|
|
run: go test -v ./...
|
|
|
|
- name: Build release version
|
|
run: go build -trimpath -ldflags "-s -w" -o passage-release .
|
|
|
|
- name: Check manpage builds
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y pandoc
|
|
make man
|