Skip to content

Commit

Permalink
chore: README and GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
darccio committed Apr 2, 2023
1 parent fb3c082 commit df62a52
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 18 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/openssf.yml
@@ -0,0 +1,12 @@
name: 'openssf'
on:
push:
branches:
- master
jobs:
scorecard:
runs-on: ubuntu-latest
name: OpenSSF
steps:
- name: OSSF Scorecard action
uses: ossf/scorecard-action@v2.1.3
12 changes: 0 additions & 12 deletions .github/workflows/stackaid.yml

This file was deleted.

18 changes: 18 additions & 0 deletions .github/workflows/tests.yml
@@ -0,0 +1,18 @@
name: 'tests'
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.20
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...
18 changes: 12 additions & 6 deletions README.md
@@ -1,16 +1,19 @@
# Mergo

[![GoDoc][3]][4]
[![GitHub release][5]][6]
[![GoCard][7]][8]
[![Build Status][1]][2]
[![Coverage Status][9]][10]
[![Test status][1]][2]
[![OpenSSF Scorecard][21]][22]
[![OpenSSF Best Practices][19]][20]
[![Coverage status][9]][10]
[![Sourcegraph][11]][12]
[![FOSSA Status][13]][14]
[![FOSSA status][13]][14]

[![GoDoc][3]][4]
[![Become my sponsor][15]][16]
[![Tidelift][17]][18]

[1]: https://travis-ci.org/imdario/mergo.png
[1]: https://github.com/imdario/mergo/workflows/tests/badge.svg?branch=master
[2]: https://travis-ci.org/imdario/mergo
[3]: https://godoc.org/github.com/imdario/mergo?status.svg
[4]: https://godoc.org/github.com/imdario/mergo
Expand All @@ -28,6 +31,10 @@
[16]: https://github.com/sponsors/imdario
[17]: https://tidelift.com/badges/package/go/github.com%2Fimdario%2Fmergo
[18]: https://tidelift.com/subscription/pkg/go-github.com-imdario-mergo
[19]: https://bestpractices.coreinfrastructure.org/projects/7177/badge
[20]: https://bestpractices.coreinfrastructure.org/projects/7177
[21]: https://api.securityscorecards.dev/projects/github.com/imdario/mergo/badge
[22]: https://api.securityscorecards.dev/projects/github.com/imdario/mergo

A helper to merge structs and maps in Golang. Useful for configuration default values, avoiding messy if-statements.

Expand Down Expand Up @@ -232,5 +239,4 @@ Written by [Dario Castañé](http://dario.im).

[BSD 3-Clause](http://opensource.org/licenses/BSD-3-Clause) license, as [Go language](http://golang.org/LICENSE).


[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fimdario%2Fmergo.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fimdario%2Fmergo?ref=badge_large)

0 comments on commit df62a52

Please sign in to comment.