diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 061ddb8..fdfc055 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -12,14 +12,19 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + with: + fetch-depth: 1 + path: go/src/github.com/evanphx/json-patch - name: Set up Go uses: actions/setup-go@v2 with: go-version: 1.15 - - name: Setup - run: go get - - name: Test - run: go test -v ./... + run: | + cd /home/runner/work/json-patch/json-patch/go/src/github.com/evanphx/json-patch + go get ./... + go test -v ./... + env: + GOPATH: /home/runner/work/json-patch/json-patch/go diff --git a/go.mod b/go.mod deleted file mode 100644 index 702e999..0000000 --- a/go.mod +++ /dev/null @@ -1,8 +0,0 @@ -module github.com/evanphx/json-patch - -go 1.14 - -require ( - github.com/jessevdk/go-flags v1.4.0 - github.com/pkg/errors v0.9.1 -) diff --git a/go.sum b/go.sum deleted file mode 100644 index 7fd13ef..0000000 --- a/go.sum +++ /dev/null @@ -1,4 +0,0 @@ -github.com/jessevdk/go-flags v1.4.0 h1:4IU2WS7AumrZ/40jfhf4QVDMsQwqA7VEHozFRrGARJA= -github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= -github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= -github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=