Merge pull request #190 from spf13/updates

Updates
This commit is contained in:
Márk Sági-Kazár 2023-08-04 11:17:13 +02:00 committed by GitHub
commit e9ba3ce839
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 12 deletions

View File

@ -3,14 +3,10 @@ version: 2
updates: updates:
- package-ecosystem: gomod - package-ecosystem: gomod
directory: / directory: /
labels:
- dependencies
schedule: schedule:
interval: daily interval: daily
- package-ecosystem: github-actions - package-ecosystem: github-actions
directory: / directory: /
labels:
- dependencies
schedule: schedule:
interval: daily interval: daily

View File

@ -2,14 +2,14 @@ name: CI
on: on:
push: push:
branches: branches: [master]
- master
pull_request: pull_request:
jobs: jobs:
build: build:
name: Build name: Build
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
# Fail fast is disabled because there are Go version specific features and tests # Fail fast is disabled because there are Go version specific features and tests
# that should be able to fail independently. # that should be able to fail independently.
@ -19,14 +19,14 @@ jobs:
go-version: ['1.16', '1.17', '1.18', '1.19', '1.20'] go-version: ['1.16', '1.17', '1.18', '1.19', '1.20']
steps: steps:
- name: Checkout repository
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v4 uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
with: with:
go-version: ${{ matrix.go }} go-version: ${{ matrix.go }}
- name: Checkout code
uses: actions/checkout@v3
- name: Build - name: Build
run: go build -v ./... run: go build -v ./...

View File

@ -1,9 +1,9 @@
# cast # cast
[![Build Status](https://github.com/spf13/cast/actions/workflows/ci.yml/badge.svg)](https://github.com/spf13/cast/actions/workflows/ci.yml) [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/spf13/cast/ci.yaml?branch=master&style=flat-square)](https://github.com/spf13/cast/actions/workflows/ci.yaml)
[![PkgGoDev](https://pkg.go.dev/badge/mod/github.com/spf13/cast)](https://pkg.go.dev/mod/github.com/spf13/cast) [![PkgGoDev](https://pkg.go.dev/badge/mod/github.com/spf13/cast)](https://pkg.go.dev/mod/github.com/spf13/cast)
![Go Version](https://img.shields.io/badge/go%20version-%3E=1.16-61CFDD.svg?style=flat-square) ![Go Version](https://img.shields.io/badge/go%20version-%3E=1.16-61CFDD.svg?style=flat-square)
[![Go Report Card](https://goreportcard.com/badge/github.com/spf13/cast)](https://goreportcard.com/report/github.com/spf13/cast) [![Go Report Card](https://goreportcard.com/badge/github.com/spf13/cast?style=flat-square)](https://goreportcard.com/report/github.com/spf13/cast)
Easy and safe casting from one type to another in Go Easy and safe casting from one type to another in Go