Skip to content

Commit

Permalink
fix linter, run node 14 tests only on macos amd
Browse files Browse the repository at this point in the history
  • Loading branch information
RobiNino committed May 20, 2024
1 parent c08b473 commit eab984f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@ concurrency:
jobs:
unit-test:
name: ${{ matrix.os }}, node ${{ matrix.node }}, python ${{ matrix.python }}
runs-on: ${{ matrix.os }}-latest
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu, windows, macos ]
# macos-latest = arm64, macos-14-large = amd64
os: [ ubuntu-latest, windows-latest, macos-latest, macos-14-large ]
node: [ 14, 16, 16.9 ]
include:
- node: "14"
Expand All @@ -27,6 +28,10 @@ jobs:
python: "3.9"
- node: "16.9"
python: "3.x"
exclude:
# MacOS with ARM does not support node 14
- os: macos-latest
node: 14

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion utils/masking.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ const CredentialsInUrlRegexp = `(?:http|https|git)://.+@`
// Remove the credentials information from the line.
func RemoveCredentials(pattern *gofrogcmd.CmdOutputPattern) (string, error) {
splitResult := strings.Split(pattern.MatchedResults[0], "//")
return strings.Replace(pattern.Line, pattern.MatchedResults[0], splitResult[0]+"//***@", -1), nil
return strings.ReplaceAll(pattern.Line, pattern.MatchedResults[0], splitResult[0]+"//***@"), nil
}

0 comments on commit eab984f

Please sign in to comment.