diff --git a/.github/workflows/go-mod.yml b/.github/workflows/go-mod.yml deleted file mode 100644 index 635a88a..0000000 --- a/.github/workflows/go-mod.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: Go Modules - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Set up Go - uses: actions/setup-go@v2 - with: - go-version: 1.18 - - - name: Test - run: | - cd v5 - go get ./... - go test -v ./... diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index aeeede6..635a88a 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -1,4 +1,4 @@ -name: Go (No Modules) +name: Go Modules on: push: @@ -7,24 +7,17 @@ on: branches: [ master ] jobs: - build: 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 + go-version: 1.18 - name: Test run: | - cd /home/runner/work/json-patch/json-patch/go/src/github.com/evanphx/json-patch + cd v5 go get ./... go test -v ./... - env: - GOPATH: /home/runner/work/json-patch/json-patch/go