Skip to content

Commit

Permalink
Merge pull request #2 from customerio/rename-module-fork
Browse files Browse the repository at this point in the history
Rename the module for the Customer.io fork
  • Loading branch information
richdawe-cio authored Jul 9, 2024
2 parents 312e543 + 2d09f3e commit edff8d0
Show file tree
Hide file tree
Showing 13 changed files with 35 additions and 20 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,30 @@ name: Build and Test

on:
push:
branches:
- main
pull_request:
repository_dispatch:
schedule:
- cron: '05 5 1 * *' # <https://crontab.guru/#05_5_1_*_*> - "At 05:05 on day-of-month 1"
# repository_dispatch:
# schedule:
# - cron: '05 5 1 * *' # <https://crontab.guru/#05_5_1_*_*> - "At 05:05 on day-of-month 1"


jobs:

build-and-test:
runs-on: windows-latest

runs-on:
# - windows-latest
- ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup Go environment
uses: actions/[email protected]
uses: actions/setup-go@v5
with:
go-version: 1.22.3
cache: false

- name: Build
run: go build -v ./...
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# Fork of go-approval-tests

This fork incorporates https://github.com/approvals/go-approval-tests/pull/41 , which has not been accepted yet by upstream. Once/if that PR is accepted, and merged, users of this fork can go back to using the original go-approval-tests.

This fork renames the module to `customerio/go-approval-tests`. This avoids the use of `replace` directives in `go.mod`, which for modules that depend on other modules using `replace`.

---

# ApprovalTests.go

ApprovalTests for [go](https://golang.org/)
Expand Down
4 changes: 2 additions & 2 deletions approvals.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"regexp"
"strings"

"github.com/approvals/go-approval-tests/reporters"
"github.com/approvals/go-approval-tests/utils"
"github.com/customerio/go-approval-tests/reporters"
"github.com/customerio/go-approval-tests/utils"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion approvals_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strings"
"testing"

"github.com/approvals/go-approval-tests/reporters"
"github.com/customerio/go-approval-tests/reporters"
)

func TestMain(m *testing.M) {
Expand Down
2 changes: 1 addition & 1 deletion examples_helper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"log"
"strings"

approvals "github.com/approvals/go-approval-tests"
approvals "github.com/customerio/go-approval-tests"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion examples_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package approvals_test

import (
approvals "github.com/approvals/go-approval-tests"
approvals "github.com/customerio/go-approval-tests"
)

func ExampleVerifyString() {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/approvals/go-approval-tests
module github.com/customerio/go-approval-tests

go 1.12
4 changes: 2 additions & 2 deletions reporter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"os"
"testing"

"github.com/approvals/go-approval-tests/reporters"
"github.com/approvals/go-approval-tests/utils"
"github.com/customerio/go-approval-tests/reporters"
"github.com/customerio/go-approval-tests/utils"
)

// TestFailable is a fake replacing testing.T
Expand Down
2 changes: 1 addition & 1 deletion reporters/diff_reporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package reporters
import (
"os/exec"

"github.com/approvals/go-approval-tests/utils"
"github.com/customerio/go-approval-tests/utils"
)

// NewFrontLoadedReporter creates the default front loaded reporter.
Expand Down
2 changes: 1 addition & 1 deletion reporters/quiet.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"path/filepath"

"github.com/approvals/go-approval-tests/utils"
"github.com/customerio/go-approval-tests/utils"
)

type quiet struct{}
Expand Down
2 changes: 1 addition & 1 deletion reporters/real_diff_reporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"os"
"os/exec"

"github.com/approvals/go-approval-tests/utils"
"github.com/customerio/go-approval-tests/utils"
)

type realDiff struct{}
Expand Down
2 changes: 1 addition & 1 deletion reporters/reporter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"os"
"testing"

"github.com/approvals/go-approval-tests/utils"
"github.com/customerio/go-approval-tests/utils"
)

type testReporter struct {
Expand Down
2 changes: 1 addition & 1 deletion scrubber_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"testing"
"time"

approvals "github.com/approvals/go-approval-tests"
approvals "github.com/customerio/go-approval-tests"
)

func TestVerifyDoesNotAcceptSeveralVerifyOptions(t *testing.T) {
Expand Down

0 comments on commit edff8d0

Please sign in to comment.