Skip to content

Bump github.com/go-playground/validator/v10 from 10.14.1 to 10.15.1 #212

Bump github.com/go-playground/validator/v10 from 10.14.1 to 10.15.1

Bump github.com/go-playground/validator/v10 from 10.14.1 to 10.15.1 #212

Workflow file for this run

# Copyright 2022 Yahoo.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: CI-Tests
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
permissions: read-all
jobs:
unit-tests:
name: Run ${{matrix.go}} unit tests
permissions:
contents: read
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest ]
go: [ '1.19.x', '1.20.x' ]
steps:
- name: checkout
uses: actions/checkout@v3
# https://github.com/mvdan/github-actions-golang#how-do-i-set-up-caching-between-builds
- uses: actions/cache@v3
with:
# In order:
# * Module download cache
# * Build cache (Linux)
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Setup go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- name: Run Go vet
run: go vet -v ./...
- name: Run Go build
run: go build ./cmd/...
- name: Run Go tests
run: go test -covermode atomic -coverprofile coverage.txt ./...
- name: Upload Coverage Report
uses: codecov/codecov-action@v3
with:
file: ./coverage.txt
- name: Run Go tests with `-race`
run: go test -v -race ./...