From c49a664d4bcb3fb4d771565b836e205609b14e18 Mon Sep 17 00:00:00 2001 From: Mark Sagi-Kazar Date: Fri, 4 Aug 2023 11:08:11 +0200 Subject: [PATCH 1/4] ci: rename ci.yml to ci.yaml Signed-off-by: Mark Sagi-Kazar --- .github/workflows/{ci.yml => ci.yaml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{ci.yml => ci.yaml} (100%) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yaml similarity index 100% rename from .github/workflows/ci.yml rename to .github/workflows/ci.yaml From 9c5e91d8042c506f0af7b62e9272d1ff699f55d6 Mon Sep 17 00:00:00 2001 From: Mark Sagi-Kazar Date: Fri, 4 Aug 2023 11:09:44 +0200 Subject: [PATCH 2/4] docs: update badges Signed-off-by: Mark Sagi-Kazar --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 58141f0..0e9e145 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ # 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) ![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 From a441ac7fbeff168d44482441383651d69e470195 Mon Sep 17 00:00:00 2001 From: Mark Sagi-Kazar Date: Fri, 4 Aug 2023 11:13:03 +0200 Subject: [PATCH 3/4] ci: pin actions versions, fix checkout order Signed-off-by: Mark Sagi-Kazar --- .github/workflows/ci.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index ae2db56..c2ebfd7 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -2,14 +2,14 @@ name: CI on: push: - branches: - - master + branches: [master] pull_request: jobs: build: name: Build runs-on: ${{ matrix.os }} + strategy: # Fail fast is disabled because there are Go version specific features and tests # that should be able to fail independently. @@ -19,14 +19,14 @@ jobs: go-version: ['1.16', '1.17', '1.18', '1.19', '1.20'] steps: + - name: Checkout repository + uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 + - name: Set up Go - uses: actions/setup-go@v4 + uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1 with: go-version: ${{ matrix.go }} - - name: Checkout code - uses: actions/checkout@v3 - - name: Build run: go build -v ./... From 9d37e3a907a640b82bdc982a6552dcf75585ec9d Mon Sep 17 00:00:00 2001 From: Mark Sagi-Kazar Date: Fri, 4 Aug 2023 11:13:12 +0200 Subject: [PATCH 4/4] ci: fix dependabot config Signed-off-by: Mark Sagi-Kazar --- .github/dependabot.yaml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml index 5153b81..73aa36f 100644 --- a/.github/dependabot.yaml +++ b/.github/dependabot.yaml @@ -3,14 +3,10 @@ version: 2 updates: - package-ecosystem: gomod directory: / - labels: - - dependencies schedule: interval: daily - package-ecosystem: github-actions directory: / - labels: - - dependencies schedule: interval: daily