Skip to content
This repository was archived by the owner on Aug 13, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .github/workflows/badges.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@ jobs:
refresh_badges:
runs-on: ubuntu-latest
steps:
- name: Refresh godoc.org documentatino
run: |
curl -sS -X POST -H "Content-Type: application/x-www-form-urlencoded" https://godoc.org/-/refresh --data "path=arnested.dk%2Fgo%2Fdsupdate"
- name: Refresh goreportcard.com report and cached report card badge
run: |
curl -sSL -X POST -H "Content-Type: application/x-www-form-urlencoded" https://goreportcard.com/checks --data "repo=arnested.dk%2Fgo%2Fdsupdate"
- name: Purge badges from GitHub cache
run: |
for u in $(curl --silent https://github.com/arnested/go-dsupdate | grep https://camo.githubusercontent.com/ | sed -E 's|.*"(https://camo\.githubusercontent\.com/[^"]+)".*|\1|'); do
Expand Down
29 changes: 0 additions & 29 deletions .github/workflows/bump-version.yml

This file was deleted.

16 changes: 16 additions & 0 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: 'Dependency Review'
on: [pull_request]

permissions:
contents: read

jobs:
dependency-review:
runs-on: ubuntu-latest
steps:
- name: 'Checkout Repository'
uses: actions/checkout@v3
- name: 'Dependency Review'
uses: actions/dependency-review-action@v2
with:
allow-licenses: BSD-2-Clause, BSD-3-Clause, MIT
2 changes: 1 addition & 1 deletion .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- uses: arnested/go-version-action@v1
id: go-version
- name: Install Go ${{ steps.go-version.outputs.minimal }}
uses: actions/setup-go@v3
uses: WillAbides/setup-go-faster@v1.7.0
with:
go-version: ${{ steps.go-version.outputs.minimal }}
- name: golangci-lint
Expand Down
41 changes: 14 additions & 27 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
name: Lookup go versions
runs-on: ubuntu-latest
outputs:
minimal: ${{ steps.go-version.outputs.minimal }}
latest: ${{ steps.go-version.outputs.latest }}
matrix: ${{ steps.go-version.outputs.matrix }}
module: ${{ steps.go-version.outputs.module }}
steps:
Expand All @@ -22,10 +22,11 @@ jobs:
- uses: actions/checkout@v3
with:
path: ${{env.workdir}}
- name: Install Go ${{ needs.go-version.outputs.minimal }}
uses: actions/setup-go@v3
- name: Install Go ${{ needs.go-version.outputs.latest }}.x
uses: WillAbides/setup-go-faster@v1.7.0
with:
go-version: ${{ needs.go-version.outputs.minimal }}
go-version: ${{ needs.go-version.outputs.latest }}.x
ignore-local: true
- name: go generate
env:
GO111MODULE: 'on'
Expand All @@ -35,6 +36,11 @@ jobs:
- name: Diff after go generate
working-directory: ${{env.workdir}}
run: git diff --exit-code
- name: Determine next version
working-directory: ${{env.workdir}}
run: |
go install golang.org/x/exp/cmd/gorelease@latest
gorelease
build_and_test:
name: Build and test
needs: go-version
Expand All @@ -44,10 +50,11 @@ jobs:
go-version: ${{ fromJSON(needs.go-version.outputs.matrix) }}
steps:
- uses: actions/checkout@v3
- name: Install Go ${{ matrix.go-version }}
uses: actions/setup-go@v3
- name: Install Go ${{ matrix.go-version }}.x
uses: WillAbides/setup-go-faster@v1.7.0
with:
go-version: ${{ matrix.go-version }}
go-version: ${{ matrix.go-version }}.x
ignore-local: true
- name: go test
env:
GO111MODULE: 'on'
Expand All @@ -56,23 +63,3 @@ jobs:
uses: codecov/codecov-action@v3
with:
flags: go${{ matrix.go-version }}
license_check:
name: License check
needs: go-version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Go ${{ needs.go-version.outputs.minimal }}
uses: actions/setup-go@v3
with:
go-version: ${{ needs.go-version.outputs.minimal }}
- name: Install wwhrd
env:
GO111MODULE: 'off'
run: go get -u github.com/frapposelli/wwhrd
- name: go mod vendor
env:
GO111MODULE: 'on'
run: go mod vendor
- name: wwhrd check
run: wwhrd check
46 changes: 46 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Release
on:
workflow_run:
workflows: ["Build and test"]
branches: [main]
types:
- completed
permissions:
contents: write
actions: read
jobs:
create-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: arnested/go-version-action@v1
id: go-version
- name: Install Go ${{ steps.go-version.outputs.latest }}.x
uses: WillAbides/setup-go-faster@v1.7.0
with:
go-version: ${{ steps.go-version.outputs.latest }}.x
ignore-local: true
- name: Determine next version
id: version
run: |
go install golang.org/x/exp/cmd/gorelease@latest
echo "::set-output name=next::$(gorelease | tee /dev/stderr | grep 'Suggested version:' | cut -f 2 -d : | xargs)"
- name: Create release
uses: actions/github-script@v6
env:
RELEASE_TAG: ${{ steps.version.outputs.next }}
with:
script: |
try {
await github.rest.repos.createRelease({
draft: false,
generate_release_notes: true,
name: process.env.RELEASE_TAG,
owner: context.repo.owner,
prerelease: false,
repo: context.repo.repo,
tag_name: process.env.RELEASE_TAG,
});
} catch (error) {
core.setFailed(error.message);
}
5 changes: 0 additions & 5 deletions .wwhrd.yml

This file was deleted.

2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# Go library for updating DS records with DK Hostmasters proprietary DS Update protocol

[![Codecov](https://codecov.io/gh/arnested/dsupdate/branch/main/graph/badge.svg)](https://codecov.io/gh/arnested/dsupdate)
[![Release](https://img.shields.io/github/release/arnested/dsupdate.svg)](https://github.com/arnested/dsupdate/releases/latest)
[![Go Report Card](https://goreportcard.com/badge/arnested.dk/go/dsupdate/)](https://goreportcard.com/report/arnested.dk/go/dsupdate)
[![CLA assistant](https://cla-assistant.io/readme/badge/arnested/dsupdate)](https://cla-assistant.io/arnested/dsupdate)
[![PkgGoDev](https://pkg.go.dev/badge/arnested.dk/go/dsupdate)](https://pkg.go.dev/arnested.dk/go/dsupdate)

Expand Down
2 changes: 0 additions & 2 deletions README.md.template
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# Go library for updating DS records with DK Hostmasters proprietary DS Update protocol

[![Codecov](https://codecov.io/gh/arnested/dsupdate/branch/main/graph/badge.svg)](https://codecov.io/gh/arnested/dsupdate)
[![Release](https://img.shields.io/github/release/arnested/dsupdate.svg)](https://github.com/arnested/dsupdate/releases/latest)
[![Go Report Card](https://goreportcard.com/badge/arnested.dk/go/dsupdate/)](https://goreportcard.com/report/arnested.dk/go/dsupdate)
[![CLA assistant](https://cla-assistant.io/readme/badge/arnested/dsupdate)](https://cla-assistant.io/arnested/dsupdate)
[![PkgGoDev](https://pkg.go.dev/badge/arnested.dk/go/dsupdate)](https://pkg.go.dev/arnested.dk/go/dsupdate)

Expand Down
4 changes: 1 addition & 3 deletions doc.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/*

Package dsupdate is a library for updating DS records with DK
Hostmasters proprietary DS Update protocol.

Expand All @@ -12,8 +11,7 @@ The service and protocol is documented at

This package has functionality to update or delete DS records using
the DS Update protocol.

*/
package dsupdate /* import "arnested.dk/go/dsupdate" */
package dsupdate

//go:generate go run github.com/jimmyfrasche/autoreadme -f
7 changes: 4 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
module arnested.dk/go/dsupdate

go 1.13
go 1.16

require (
github.com/jimmyfrasche/autoreadme v0.0.0-20180503232641-58e67811d607
golang.org/x/tools v0.0.0-20191026034945-b2104f82a97d
github.com/jimmyfrasche/autoreadme v0.0.0-20210809222737-8f1c593357f8
golang.org/x/sys v0.0.0-20220731174439-a90be440212d // indirect
golang.org/x/tools v0.1.12
)
27 changes: 23 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,10 +1,29 @@
github.com/jimmyfrasche/autoreadme v0.0.0-20180503232641-58e67811d607 h1:8iNxXF8oGl6VnCGlDHY0eYz4DX/B99W3HpO5z4J5TyA=
github.com/jimmyfrasche/autoreadme v0.0.0-20180503232641-58e67811d607/go.mod h1:lS0CTSpOQsTlXWQr5CjIJxxHnkW3HhRk1YS4HIqND54=
github.com/jimmyfrasche/autoreadme v0.0.0-20210809222737-8f1c593357f8 h1:i7cx8seJ6UkdPK74aD1k7psfVnmvARlyh3gGInAJZkU=
github.com/jimmyfrasche/autoreadme v0.0.0-20210809222737-8f1c593357f8/go.mod h1:lS0CTSpOQsTlXWQr5CjIJxxHnkW3HhRk1YS4HIqND54=
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 h1:6zppjxzCulZykYSLyVDYbneBfbaBIQPYMevg0bEwv2s=
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220731174439-a90be440212d h1:Sv5ogFZatcgIMMtBSTTAgMYsicp25MXBubjXNDKwm80=
golang.org/x/sys v0.0.0-20220731174439-a90be440212d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/tools v0.0.0-20191026034945-b2104f82a97d h1:QFO0Wgcqcp8nI9hbisKDTBsmfwrvLswk2T73QDZZgVo=
golang.org/x/tools v0.0.0-20191026034945-b2104f82a97d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.1.12 h1:VveCTK38A2rkS8ZqFY25HIDFscX5X9OoEhJd3quQmXU=
golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
1 change: 1 addition & 0 deletions tools.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build tools
// +build tools

package dsupdate
Expand Down