Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ayoisaiah committed Oct 5, 2024
1 parent 9e8b8b8 commit b054944
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v4
Expand All @@ -24,6 +24,15 @@ 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: Run tests
run: go test ./... -race
2 changes: 1 addition & 1 deletion replace/replace_test/variables_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ func TestVariables(t *testing.T) {
"-f",
".*",
"-r",
"{btime.YYYY}-{ctime.MM}-{now.DD}{ext}",
"{now.YYYY}-{ctime.MM}-{btime.DD}{ext}",
},
},
{
Expand Down
3 changes: 3 additions & 0 deletions validate/validate_test/validate_unix_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//go:build !windows
// +build !windows

package validate_test

import (
Expand Down

0 comments on commit b054944

Please sign in to comment.