generated from cheqd/.github
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/dev-1074-did-resolver' into dev-…
…1074-did-resolver
- Loading branch information
Showing
7 changed files
with
99 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: "Build" | ||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
|
||
check-building: | ||
name: "Check binary building" | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: '1.17' | ||
|
||
- name: Run Golang unit tests | ||
run: go build main.go | ||
|
||
try-docker-build: | ||
name: "Check docker building" | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Check docker building | ||
working-directory: . | ||
run: docker build -f docker/Dockerfile . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: "Workflow Dispatch" | ||
on: push | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
|
||
jobs: | ||
|
||
call-lint: | ||
name: "Lint" | ||
uses: ./.github/workflows/markdown-lint.yml | ||
|
||
call-build: | ||
name: "Build" | ||
needs: call-lint | ||
uses: ./.github/workflows/build.yml | ||
|
||
call-test: | ||
name: "Tests" | ||
needs: call-build | ||
uses: ./.github/workflows/test.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
name: Markdown quality control | ||
|
||
on: | ||
on: | ||
workflow_call: | ||
push: | ||
paths: | ||
- '**.md' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: "Test" | ||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
|
||
go-unit-tests: | ||
name: "Golang unit tests" | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: '1.17' | ||
|
||
- name: Run Golang unit tests | ||
run: go test -v ./... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Port which will be used for incoming requests on resolver side | ||
RESOLVER_PORT="1313" | ||
|
||
# Drivers port for application side. | ||
# For example, if you application will send requests to http://localhost/ | ||
# then port should be 80 | ||
REDIRECTED_PORT="80" | ||
|
||
# Local address which is used by user application | ||
LOCAL_REDIRECT_FROM=localhost:80 | ||
|
||
# Address with port of external DID-Resolver. | ||
EXTERNAL_REDIRECT_TO=http://localhost:1313 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters