-
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
36 additions
and
5 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ jobs: | |
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [macos-latest, ubuntu-latest, windows-latest] | ||
os: [ubuntu-latest, macos-latest] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
@@ -24,6 +24,27 @@ jobs: | |
|
||
- name: Use Exiftool | ||
uses: woss/[email protected] | ||
if: matrix.os != 'windows-latest' | ||
|
||
- name: Install winget | ||
uses: Cyberboss/install-winget@v1 | ||
if: matrix.os == 'windows-latest' | ||
|
||
- name: Install Exiftool | ||
run: winget install exiftool --disable-interactivity --accept-source-agreements | ||
if: matrix.os == 'windows-latest' | ||
|
||
- name: Set up gotestfmt | ||
run: go install github.com/gotesttools/gotestfmt/v2/cmd/gotestfmt@latest | ||
|
||
- name: Run tests | ||
run: go test ./... -race | ||
run: go test ./... -json -v -race 2>&1 | tee /tmp/gotest.log | gotestfmt | ||
|
||
# Upload the original go test log as an artifact for later review. | ||
- name: Upload test log | ||
uses: actions/upload-artifact@v4 | ||
if: always() | ||
with: | ||
name: test-log | ||
path: /tmp/gotest.log | ||
if-no-files-found: error |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
//go:build !windows | ||
// +build !windows | ||
|
||
package validate_test | ||
|
||
import ( | ||
|