Compare commits

...

9 Commits

Author SHA1 Message Date
Márk Sági-Kazár e9ba3ce839
Merge pull request #190 from spf13/updates
Updates
2023-08-04 11:17:13 +02:00
Mark Sagi-Kazar 9d37e3a907
ci: fix dependabot config
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
2023-08-04 11:13:12 +02:00
Mark Sagi-Kazar a441ac7fbe
ci: pin actions versions, fix checkout order
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
2023-08-04 11:13:03 +02:00
Mark Sagi-Kazar 9c5e91d804
docs: update badges
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
2023-08-04 11:09:44 +02:00
Mark Sagi-Kazar c49a664d4b
ci: rename ci.yml to ci.yaml
Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
2023-08-04 11:08:11 +02:00
Márk Sági-Kazár 0b4af69ad6
Merge pull request #185 from spf13/dependabot/go_modules/github.com/frankban/quicktest-1.14.5
Bump github.com/frankban/quicktest from 1.14.4 to 1.14.5
2023-08-04 11:04:58 +02:00
Márk Sági-Kazár 235f028989
Merge pull request #180 from spf13/dependabot/github_actions/actions/setup-go-4
Bump actions/setup-go from 3 to 4
2023-08-04 11:04:28 +02:00
dependabot[bot] f54f5eb09c
Bump github.com/frankban/quicktest from 1.14.4 to 1.14.5
Bumps [github.com/frankban/quicktest](https://github.com/frankban/quicktest) from 1.14.4 to 1.14.5.
- [Release notes](https://github.com/frankban/quicktest/releases)
- [Commits](https://github.com/frankban/quicktest/compare/v1.14.4...v1.14.5)

---
updated-dependencies:
- dependency-name: github.com/frankban/quicktest
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-12 12:05:15 +00:00
dependabot[bot] f51fe10305
Bump actions/setup-go from 3 to 4
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 3 to 4.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-16 12:08:03 +00:00
5 changed files with 11 additions and 15 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@v3 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

2
go.mod
View File

@ -2,7 +2,7 @@ module github.com/spf13/cast
go 1.18 go 1.18
require github.com/frankban/quicktest v1.14.4 require github.com/frankban/quicktest v1.14.5
require ( require (
github.com/google/go-cmp v0.5.9 // indirect github.com/google/go-cmp v0.5.9 // indirect

4
go.sum
View File

@ -1,6 +1,6 @@
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
github.com/frankban/quicktest v1.14.4 h1:g2rn0vABPOOXmZUj+vbmUp0lPoXEMuhTpIluN0XL9UY= github.com/frankban/quicktest v1.14.5 h1:dfYrrRyLtiqT9GyKXgdh+k4inNeTvmGbuSgZ3lx3GhA=
github.com/frankban/quicktest v1.14.4/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0= github.com/frankban/quicktest v1.14.5/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0=
github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=
github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=