-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #590 from iotaledger/develop
Merge develop into master
- Loading branch information
Showing
642 changed files
with
73,644 additions
and
20,439 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,18 @@ | ||
name: Develop | ||
'on': | ||
push: | ||
branches: | ||
- develop | ||
jobs: | ||
docker: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Publish to Docker Hub | ||
uses: docker/build-push-action@92e71463491f2d026a477188b8ad3a0fdd9d672c | ||
with: | ||
repository: iotaledger/goshimmer | ||
username: '${{ secrets.IOTALEDGER_HUB_DOCKER_LOGIN }}' | ||
password: '${{ secrets.IOTALEDGER_HUB_DOCKER_PASSWORD }}' | ||
tags: develop |
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,249 @@ | ||
name: Integration tests | ||
|
||
on: pull_request | ||
|
||
jobs: | ||
|
||
autopeering: | ||
name: autopeering | ||
env: | ||
TEST_NAME: autopeering | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Build GoShimmer image | ||
run: docker build -t iotaledger/goshimmer . | ||
|
||
- name: Pull additional Docker images | ||
run: | | ||
docker pull angelocapossele/drand:latest | ||
docker pull gaiaadm/pumba:0.7.2 | ||
docker pull gaiadocker/iproute2:latest | ||
- name: Run integration tests | ||
run: docker-compose -f tools/integration-tests/tester/docker-compose.yml up --abort-on-container-exit --exit-code-from tester --build | ||
|
||
- name: Create logs from tester | ||
if: always() | ||
run: | | ||
docker logs tester &> tools/integration-tests/logs/tester.log | ||
- name: Save logs as artifacts | ||
if: always() | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: ${{ env.TEST_NAME }} | ||
path: tools/integration-tests/logs | ||
|
||
|
||
common: | ||
name: common | ||
env: | ||
TEST_NAME: common | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Build GoShimmer image | ||
run: docker build -t iotaledger/goshimmer . | ||
|
||
- name: Pull additional Docker images | ||
run: | | ||
docker pull angelocapossele/drand:latest | ||
docker pull gaiaadm/pumba:0.7.2 | ||
docker pull gaiadocker/iproute2:latest | ||
- name: Run integration tests | ||
run: docker-compose -f tools/integration-tests/tester/docker-compose.yml up --abort-on-container-exit --exit-code-from tester --build | ||
|
||
- name: Create logs from tester | ||
if: always() | ||
run: | | ||
docker logs tester &> tools/integration-tests/logs/tester.log | ||
- name: Save logs as artifacts | ||
if: always() | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: ${{ env.TEST_NAME }} | ||
path: tools/integration-tests/logs | ||
|
||
consensus: | ||
name: consensus | ||
env: | ||
TEST_NAME: consensus | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Build GoShimmer image | ||
run: docker build -t iotaledger/goshimmer . | ||
|
||
- name: Pull additional Docker images | ||
run: | | ||
docker pull angelocapossele/drand:latest | ||
docker pull gaiaadm/pumba:0.7.2 | ||
docker pull gaiadocker/iproute2:latest | ||
- name: Run integration tests | ||
run: docker-compose -f tools/integration-tests/tester/docker-compose.yml up --abort-on-container-exit --exit-code-from tester --build | ||
|
||
- name: Create logs from tester | ||
if: always() | ||
run: | | ||
docker logs tester &> tools/integration-tests/logs/tester.log | ||
- name: Save logs as artifacts | ||
if: always() | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: ${{ env.TEST_NAME }} | ||
path: tools/integration-tests/logs | ||
|
||
|
||
drng: | ||
name: drng | ||
env: | ||
TEST_NAME: drng | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Build GoShimmer image | ||
run: docker build -t iotaledger/goshimmer . | ||
|
||
- name: Pull additional Docker images | ||
run: | | ||
docker pull angelocapossele/drand:latest | ||
docker pull gaiaadm/pumba:0.7.2 | ||
docker pull gaiadocker/iproute2:latest | ||
- name: Run integration tests | ||
run: docker-compose -f tools/integration-tests/tester/docker-compose.yml up --abort-on-container-exit --exit-code-from tester --build | ||
|
||
- name: Create logs from tester | ||
if: always() | ||
run: | | ||
docker logs tester &> tools/integration-tests/logs/tester.log | ||
- name: Save logs as artifacts | ||
if: always() | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: ${{ env.TEST_NAME }} | ||
path: tools/integration-tests/logs | ||
|
||
|
||
|
||
message: | ||
name: message | ||
env: | ||
TEST_NAME: message | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Build GoShimmer image | ||
run: docker build -t iotaledger/goshimmer . | ||
|
||
- name: Pull additional Docker images | ||
run: | | ||
docker pull angelocapossele/drand:latest | ||
docker pull gaiaadm/pumba:0.7.2 | ||
docker pull gaiadocker/iproute2:latest | ||
- name: Run integration tests | ||
run: docker-compose -f tools/integration-tests/tester/docker-compose.yml up --abort-on-container-exit --exit-code-from tester --build | ||
|
||
- name: Create logs from tester | ||
if: always() | ||
run: | | ||
docker logs tester &> tools/integration-tests/logs/tester.log | ||
- name: Save logs as artifacts | ||
if: always() | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: ${{ env.TEST_NAME }} | ||
path: tools/integration-tests/logs | ||
|
||
|
||
|
||
value: | ||
name: value | ||
env: | ||
TEST_NAME: value | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Build GoShimmer image | ||
run: docker build -t iotaledger/goshimmer . | ||
|
||
- name: Pull additional Docker images | ||
run: | | ||
docker pull angelocapossele/drand:latest | ||
docker pull gaiaadm/pumba:latest | ||
docker pull gaiadocker/iproute2:latest | ||
- name: Run integration tests | ||
run: docker-compose -f tools/integration-tests/tester/docker-compose.yml up --abort-on-container-exit --exit-code-from tester --build | ||
|
||
- name: Create logs from tester | ||
if: always() | ||
run: | | ||
docker logs tester &> tools/integration-tests/logs/tester.log | ||
- name: Save logs as artifacts | ||
if: always() | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: ${{ env.TEST_NAME }} | ||
path: tools/integration-tests/logs | ||
|
||
faucet: | ||
name: faucet | ||
env: | ||
TEST_NAME: faucet | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Build GoShimmer image | ||
run: docker build -t iotaledger/goshimmer . | ||
|
||
- name: Pull additional Docker images | ||
run: | | ||
docker pull angelocapossele/drand:latest | ||
docker pull gaiaadm/pumba:latest | ||
docker pull gaiadocker/iproute2:latest | ||
- name: Run integration tests | ||
run: docker-compose -f tools/integration-tests/tester/docker-compose.yml up --abort-on-container-exit --exit-code-from tester --build | ||
|
||
- name: Create logs from tester | ||
if: always() | ||
run: | | ||
docker logs tester &> tools/integration-tests/logs/tester.log | ||
- name: Save logs as artifacts | ||
if: always() | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: ${{ env.TEST_NAME }} | ||
path: tools/integration-tests/logs |
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,21 +1,38 @@ | ||
name: Release | ||
|
||
on: | ||
'on': | ||
release: | ||
types: [published] | ||
|
||
types: | ||
- published | ||
jobs: | ||
Release: | ||
name: Release | ||
runs-on: [ubuntu-latest] | ||
goreleaser: | ||
name: GoReleaser | ||
runs-on: | ||
- ubuntu-latest | ||
container: | ||
image: iotmod/goreleaser-cgo-cross-compiler:1.13.5 | ||
volumes: [/repo] | ||
|
||
image: 'iotmod/goreleaser-cgo-cross-compiler:1.14.4' | ||
volumes: | ||
- /repo | ||
steps: | ||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v2 | ||
- name: Release GoShimmer | ||
run: goreleaser --rm-dist | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Copy config.default.json to config.json | ||
run: cp config.default.json config.json | ||
- name: Release GoShimmer | ||
run: goreleaser --rm-dist | ||
env: | ||
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' | ||
docker: | ||
name: Docker | ||
runs-on: | ||
- ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Publish to Docker Hub | ||
uses: docker/build-push-action@92e71463491f2d026a477188b8ad3a0fdd9d672c | ||
with: | ||
repository: iotaledger/goshimmer | ||
username: '${{ secrets.IOTALEDGER_HUB_DOCKER_LOGIN }}' | ||
password: '${{ secrets.IOTALEDGER_HUB_DOCKER_PASSWORD }}' | ||
tags: latest | ||
tag_with_ref: true |
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,20 @@ | ||
name: reviewdog | ||
|
||
on: pull_request | ||
|
||
jobs: | ||
|
||
golangci-lint: | ||
name: GolangCI-Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v2 | ||
|
||
- name: Run golangci-lint | ||
uses: docker://reviewdog/action-golangci-lint:v1.2 | ||
with: | ||
github_token: ${{ secrets.github_token }} | ||
golangci_lint_flags: "--timeout=10m" | ||
reporter: "github-pr-review" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,4 +26,7 @@ objectsdb/ | |
# OSX related files | ||
.DS_Store | ||
shimmer | ||
goshimmer | ||
goshimmer | ||
|
||
config.json | ||
.env |
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 +0,0 @@ | ||
[submodule "IOTAtangle"] | ||
path = IOTAtangle | ||
url = https://github.com/glumb/IOTAtangle.git | ||
[submodule "socket.io-client"] | ||
path = socket.io-client | ||
url = https://github.com/socketio/socket.io-client.git | ||
Oops, something went wrong.