Skip to content

Commit

Permalink
feat: Use new on-chain storage for DID documents (#103)
Browse files Browse the repository at this point in the history
* feat: Use new on-chain storage for DID documents

* chore: Update CI/CD workflow

[buf-breaking skip]

* Add resolver image

* fix: Remove deprected flag from `make install`
  • Loading branch information
bcessa authored Mar 6, 2024
1 parent ccaafcd commit 7310600
Show file tree
Hide file tree
Showing 87 changed files with 9,189 additions and 5,228 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
name: ci
env:
commit_msg: ""
on:
push:
branches:
Expand All @@ -22,7 +24,7 @@ jobs:
steps:
# Checkout code
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

# Configure runner environment
- name: Set up runner environment
Expand All @@ -35,7 +37,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.20.x
go-version: 1.21.x

# Get commit message
- name: Get commit message
Expand Down Expand Up @@ -65,7 +67,7 @@ jobs:
steps:
# Checkout code
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

# Configure runner environment
- name: Set up runner environment
Expand All @@ -78,7 +80,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.20.x
go-version: 1.21.x

# Get commit message
- name: Get commit message
Expand All @@ -90,9 +92,9 @@ jobs:
# Setup buf
- name: Setup buf
id: buf-setup
uses: bufbuild/buf-setup-action@v1.17.0
uses: bufbuild/buf-setup-action@v1.29.0
with:
version: 1.17.0
version: 1.29.0
github_token: ${{ github.token }}

# Static analysis
Expand All @@ -119,14 +121,14 @@ jobs:
needs: protos
strategy:
matrix:
go-version: [1.19.x, 1.20.x]
go-version: [1.19.x, 1.20.x, 1.21.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
timeout-minutes: 15
steps:
# Checkout code
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

# Configure runner environment
- name: Set up runner environment
Expand All @@ -153,7 +155,7 @@ jobs:
- name: Static analysis
uses: golangci/golangci-lint-action@v3
with:
version: v1.51.2
version: v1.54.2

# Run unit tests
- name: Test
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
steps:
# Checkout code
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

# Prepare runner environment
- name: Set up runner environment
Expand Down
26 changes: 7 additions & 19 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,9 @@ jobs:
timeout-minutes: 20
if: startsWith(github.ref, 'refs/tags/')
steps:
# Go
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.20.x

# Checkout code
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
# This is required for the changelog to be properly generated
with:
fetch-depth: 0
Expand All @@ -31,26 +25,20 @@ jobs:
GITHUB_USER: ${{ github.actor }}
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}

# If "vendor" is in cache, restore.
# To run conditional steps use:
# if: steps.vendor-cache.outputs.cache-hit != 'true'
- name: Restore modules from cache
id: vendor-cache
uses: actions/cache@v3
env:
cache-name: vendor
# Go
- name: Set up Go
uses: actions/setup-go@v4
with:
path: ./vendor
key: ${{ env.cache-name }}-${{ hashFiles('go.sum') }}
go-version: 1.21.x

# Use goreleaser to create the new release
# https://github.com/goreleaser/goreleaser-action
- name: Create release
uses: goreleaser/goreleaser-action@v4
uses: goreleaser/goreleaser-action@v5
if: startsWith(github.ref, 'refs/tags/')
with:
version: latest
args: release --rm-dist --skip-validate
args: release --clean --skip=validate
env:
# https://docs.github.com/en/free-pro-team@latest/actions/reference/authentication-in-a-workflow
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ linters:
- typecheck
- gocyclo
- goconst
- depguard
- misspell
- lll
- nakedret
Expand Down Expand Up @@ -55,6 +54,7 @@ linters:
- deadcode
- unused
- dupl
- depguard
# https://github.com/golangci/golangci-lint/issues/2649
- structcheck
- wastedassign
Expand Down
17 changes: 6 additions & 11 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,9 @@ archives:
# include documentation files in the package for distribution
- README.md
- LICENSE*
- src: '*.md'
- src: "*.md"
dst: docs
strip_parent: true
rlcp: true
# generate integrity checksums
# https://goreleaser.com/customization/checksum/
checksum:
Expand All @@ -75,16 +74,14 @@ checksum:
# https://goreleaser.com/customization/source/
source:
enabled: true
rlcp: true
# produce test releases
# https://goreleaser.com/customization/snapshots/
snapshot:
name_template: "{{ .Version }}-next"
# build and publish docker images
# https://goreleaser.com/customization/docker/
dockers:
-
# Build IDs to gather the binaries from
- # Build IDs to gather the binaries from
ids:
- did-algo
# GOOS of the built binary that should be used
Expand Down Expand Up @@ -115,8 +112,7 @@ dockers:
# linux packages
# https://goreleaser.com/customization/nfpm/
nfpms:
-
file_name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
- file_name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
builds:
- did-algo
vendor: Algorand Foundation
Expand All @@ -140,7 +136,7 @@ nfpms:
type: "config|noreplace"
changelog:
# Sorts the changelog commit messages (asc, desc or '')
sort: ''
sort: ""
# Remove certain commit messages from the changelog
filters:
# Standard commit messages can help to produce better changelogs
Expand All @@ -153,13 +149,12 @@ changelog:
# Produce homebrew formulas for the project artifacts
# https://goreleaser.com/customization/homebrew/
brews:
-
# Formula name
- # Formula name
name: algoid
# Push the formula to the tap repository
skip_upload: "true"
# TAP repository
tap:
repository:
owner: bryk-io
name: homebrew-tap
# Use 'github-actions' as commit author
Expand Down
Loading

0 comments on commit 7310600

Please sign in to comment.