Skip to content

Commit

Permalink
Merge pull request #19 from o1egl/test_os_matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
o1egl authored Mar 14, 2021
2 parents a3044b1 + 51019ae commit 8eef4de
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,20 @@ jobs:
version: v1.37.1
skip-go-installation: true
test:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
- name: Test
run: go test -race -timeout=60s -v -coverprofile=coverage.txt -covermode=atomic ./...
run: go test -race -timeout=60s -v -coverprofile="coverage.txt" -covermode=atomic ./...
- uses: codecov/codecov-action@v1
if: ${{ matrix.os == 'ubuntu-latest' }}
with:
file: ./coverage.txt
release:
Expand Down
3 changes: 2 additions & 1 deletion govatar.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
"io/fs"
"math/rand"
"os"
"path"
"path/filepath"
"sort"
"strings"
Expand Down Expand Up @@ -175,7 +176,7 @@ func mustAssetsList(dir string) []string {
}
assets := make([]string, len(dirEntries))
for i, dirEntry := range dirEntries {
assets[i] = filepath.Join(dir, dirEntry.Name())
assets[i] = path.Join(dir, dirEntry.Name())
}
sort.Sort(naturalSort(assets))
return assets
Expand Down

0 comments on commit 8eef4de

Please sign in to comment.