kcherry: Add retry when diff fails #446
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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 | |
- clitable/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.x | |
- 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.x | |
- 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.20", "1.19"] | |
tool: [buildutils, fsmodtime, 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 }} |