Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: go-playground/validator
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: go-playground/validator
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: gh-actions
Choose a head ref
Can’t automatically merge. Don’t worry, you can still create the pull request.
  • 4 commits
  • 1 file changed
  • 1 contributor

Commits on Oct 17, 2020

  1. restore cache on all but ubuntu and latest go

    Dean Karn committed Oct 17, 2020
    Copy the full SHA
    e3a9ac5 View commit details
  2. move linting to separate job

    Dean Karn committed Oct 17, 2020
    Copy the full SHA
    ce708b1 View commit details
  3. fix yaml

    Dean Karn committed Oct 17, 2020
    Copy the full SHA
    793791d View commit details
  4. fix indentation

    Dean Karn committed Oct 17, 2020
    Copy the full SHA
    96d7f70 View commit details
Showing with 13 additions and 10 deletions.
  1. +13 −10 .github/workflows/workflow.yml
23 changes: 13 additions & 10 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -17,24 +17,17 @@ jobs:
with:
go-version: ${{ matrix.go-version }}

- name: Checkout code
uses: actions/checkout@v2

- name: Restore Cache
if: matrix.os != 'ubuntu-latest' && matrix.go-version != '1.15.x'
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-v1-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-v1-go-
- name: Checkout code
uses: actions/checkout@v2

- name: lint
if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.15.x'
uses: golangci/golangci-lint-action@v2
with:
version: v1.31

- name: Test
run: go test -race -covermode=atomic -coverprofile="profile.cov" ./...

@@ -43,3 +36,13 @@ jobs:
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: profile.cov

golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: v1.31