Skip to content

ffind: Update to go-getoptions v0.25.0 #453

ffind: Update to go-getoptions v0.25.0

ffind: Update to go-getoptions v0.25.0 #453

Workflow file for this run

---
name: Test
on:
- push
- pull_request
jobs:
# Build with latest version of Go
tools:
name: Tool
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
tool:
- cathtml
- cssh/cscp
- cssh/cssh
- csvtable/cmd/csvtable
- grepp
- joinlines
- password-cache/cmd/password-cache
- webserve
- yaml-parse
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- id: build
name: Build
run: |
go build -v .
dir=$(basename $PWD)
echo "dir: $dir"
echo "::set-output name=binary::$dir"
working-directory: ${{ matrix.tool }}
shell: bash
- name: Test
run: go test -coverprofile=coverage.txt -covermode=atomic ./...
working-directory: ${{ matrix.tool }}
- name: Upload
uses: actions/upload-artifact@v2
with:
path: ${{ matrix.tool }}/${{ steps.build.outputs.binary }}
name: ${{ steps.build.outputs.binary }} ${{ matrix.os }}
# Build with latest version of Go
tools-linux:
name: Tool
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
tool:
- cli-bookmarks
- ffind
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: 1.17
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- id: build
name: Build
run: |
go build -v .
dir=$(basename $PWD)
echo "dir: $dir"
echo "::set-output name=binary::$dir"
working-directory: ${{ matrix.tool }}
shell: bash
- name: Test
run: go test -coverprofile=coverage.txt -covermode=atomic ./...
working-directory: ${{ matrix.tool }}
- name: Upload
uses: actions/upload-artifact@v2
with:
path: ${{ matrix.tool }}/${{ steps.build.outputs.binary }}
name: ${{ steps.build.outputs.binary }} ${{ matrix.os }}
# Support last two releases of Go
libs:
name: Lib
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
go: [1.16, 1.17]
tool: [buildutils, run]
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Test
run: go test -coverprofile=coverage.txt -covermode=atomic ./...
working-directory: ${{ matrix.tool }}
# fs introduced in go 1.17
libs-current:
name: Lib
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
go: [1.17]
tool: [fsmodtime]
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Test
run: go test -coverprofile=coverage.txt -covermode=atomic ./...
working-directory: ${{ matrix.tool }}