Skip to content
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
4 changes: 2 additions & 2 deletions .github/workflows/contracts-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
needs.docs-detect-changes.outputs.path-filter == 'true'
|| github.event_name == 'push'
|| github.event_name == 'workflow_dispatch'
uses: keep-network/ci/.github/workflows/reusable-solidity-docs.yml@main
uses: threshold-network/ci/.github/workflows/reusable-solidity-docs.yml@20b35345d276a3c7365e3829b8078387a7c9dccb
with:
projectDir: /solidity
# We need to remove unnecessary `//` comment used in the `@dev`
Expand Down Expand Up @@ -71,7 +71,7 @@ jobs:
name: Publish contracts documentation
needs: docs-detect-changes
if: github.event_name == 'release' && startsWith(github.ref, 'refs/tags/solidity/')
uses: keep-network/ci/.github/workflows/reusable-solidity-docs.yml@main
uses: threshold-network/ci/.github/workflows/reusable-solidity-docs.yml@20b35345d276a3c7365e3829b8078387a7c9dccb
with:
projectDir: /solidity
# We need to remove unnecessary `//` comment used in the `@dev`
Expand Down
45 changes: 23 additions & 22 deletions .github/workflows/contracts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ jobs:
outputs:
path-filter: ${{ steps.filter.outputs.path-filter }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
if: github.event_name == 'pull_request'

- uses: dorny/paths-filter@v2
- uses: dorny/paths-filter@v3
if: github.event_name == 'pull_request'
id: filter
with:
Expand All @@ -65,7 +65,7 @@ jobs:
run:
working-directory: ./solidity
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
Expand Down Expand Up @@ -110,7 +110,7 @@ jobs:
run:
working-directory: ./solidity
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
Expand Down Expand Up @@ -146,7 +146,7 @@ jobs:
run:
working-directory: ./solidity
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
Expand All @@ -172,13 +172,13 @@ jobs:
run: yarn install --immutable

- name: Get upstream packages versions
uses: keep-network/ci/actions/upstream-builds-query@v2
uses: threshold-network/ci/actions/upstream-builds-query@20b35345d276a3c7365e3829b8078387a7c9dccb
id: upstream-builds-query
with:
upstream-builds: ${{ github.event.inputs.upstream_builds }}
query: |
random-beacon-contracts-version = github.com/keep-network/keep-core/random-beacon#version
ecdsa-contracts-version = github.com/keep-network/keep-core/ecdsa#version
random-beacon-contracts-version = github.com/threshold-network/keep-core/random-beacon#version
ecdsa-contracts-version = github.com/threshold-network/keep-core/ecdsa#version

- name: Resolve latest contracts
run: |
Expand All @@ -200,7 +200,7 @@ jobs:

- name: Bump up package version
id: npm-version-bump
uses: keep-network/npm-version-bump@v2
uses: threshold-network/ci/actions/npm-version-bump@20b35345d276a3c7365e3829b8078387a7c9dccb
with:
work-dir: solidity
environment: ${{ github.event.inputs.environment }}
Expand All @@ -213,20 +213,21 @@ jobs:
run: npm publish --access=public --tag ${{ github.event.inputs.environment }} --network=${{ github.event.inputs.environment }}

- name: Notify CI about completion of the workflow
uses: keep-network/ci/actions/notify-workflow-completed@v2
uses: threshold-network/ci/actions/notify-workflow-completed@20b35345d276a3c7365e3829b8078387a7c9dccb
env:
GITHUB_TOKEN: ${{ secrets.CI_GITHUB_TOKEN }}
with:
module: "github.com/keep-network/tbtc-v2"
module: "github.com/threshold-network/tbtc-v2"
url: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
environment: ${{ github.event.inputs.environment }}
upstream_builds: ${{ github.event.inputs.upstream_builds }}
upstream_ref: ${{ github.event.inputs.upstream_ref }}
version: ${{ steps.npm-version-bump.outputs.version }}

- name: Upload files needed for etherscan verification
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
include-hidden-files: true
name: Artifacts for etherscan verification
path: |
./solidity/deployments
Expand All @@ -240,10 +241,10 @@ jobs:
run:
working-directory: ./solidity
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Download files needed for etherscan verification
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: Artifacts for etherscan verification
path: ./solidity
Expand Down Expand Up @@ -298,7 +299,7 @@ jobs:
run:
working-directory: ./solidity
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
Expand All @@ -324,13 +325,13 @@ jobs:
run: yarn install --immutable

- name: Get upstream packages versions
uses: keep-network/ci/actions/upstream-builds-query@v2
uses: threshold-network/ci/actions/upstream-builds-query@20b35345d276a3c7365e3829b8078387a7c9dccb
id: upstream-builds-query
with:
upstream-builds: ${{ github.event.inputs.upstream_builds }}
query: |
random-beacon-contracts-version = github.com/keep-network/keep-core/random-beacon#version
ecdsa-contracts-version = github.com/keep-network/keep-core/ecdsa#version
random-beacon-contracts-version = github.com/threshold-network/keep-core/random-beacon#version
ecdsa-contracts-version = github.com/threshold-network/keep-core/ecdsa#version

- name: Resolve latest contracts
run: |
Expand All @@ -347,7 +348,7 @@ jobs:

- name: Bump up package version
id: npm-version-bump
uses: keep-network/npm-version-bump@v2
uses: threshold-network/ci/actions/npm-version-bump@20b35345d276a3c7365e3829b8078387a7c9dccb
with:
work-dir: solidity
environment: dapp-dev-${{ github.event.inputs.environment }}
Expand All @@ -369,7 +370,7 @@ jobs:
run:
working-directory: ./solidity
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
Expand Down Expand Up @@ -421,7 +422,7 @@ jobs:
run:
working-directory: ./solidity
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
Expand All @@ -432,7 +433,7 @@ jobs:
corepack enable
corepack prepare yarn@4.12.0 --activate

- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: 3.10.8

Expand Down
26 changes: 14 additions & 12 deletions .github/workflows/monitoring.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ jobs:
outputs:
path-filter: ${{ steps.filter.outputs.path-filter }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
if: github.event_name == 'pull_request'

- uses: dorny/paths-filter@v2
- uses: dorny/paths-filter@v3
if: github.event_name == 'pull_request'
id: filter
with:
Expand All @@ -48,9 +48,9 @@ jobs:
run:
working-directory: ./monitoring
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: "22.x"
cache-dependency-path: monitoring/yarn.lock
Expand All @@ -75,18 +75,18 @@ jobs:
run:
working-directory: ./monitoring
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Load environment variables
if: ${{ github.event.inputs.environment != 'local' }}
uses: keep-network/ci/actions/load-env-variables@v2
uses: threshold-network/ci/actions/load-env-variables@20b35345d276a3c7365e3829b8078387a7c9dccb
with:
environment: ${{ github.event.inputs.environment }}

- uses: docker/setup-buildx-action@v2
- uses: docker/setup-buildx-action@v3

- name: Cache Docker layers
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
Expand All @@ -95,7 +95,7 @@ jobs:

- name: Login to Docker registry
if: ${{ github.event.inputs.environment != 'local' }}
uses: docker/login-action@v1
uses: docker/login-action@v3
env:
CLUSTER_MAPPING: '{"sepolia": "KEEP_TEST", "mainnet": "KEEP_PRD"}'
with:
Expand All @@ -104,8 +104,10 @@ jobs:
password: ${{ secrets[format('{0}_GCR_JSON_KEY', fromJson(env.CLUSTER_MAPPING)[github.event.inputs.environment])] }}

- name: Build Docker image
uses: docker/build-push-action@v3
uses: docker/build-push-action@v6
with:
# Preserve the existing image format.
provenance: false
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new
context: ./monitoring
Expand All @@ -131,9 +133,9 @@ jobs:
run:
working-directory: ./monitoring
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: "22.x"
cache-dependency-path: monitoring/yarn.lock
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/npm-contracts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ jobs:
run:
working-directory: ./solidity
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: "22.x"
registry-url: "https://registry.npmjs.org"
Expand Down Expand Up @@ -53,7 +53,7 @@ jobs:

- name: Bump up package version
id: npm-version-bump
uses: keep-network/npm-version-bump@v2
uses: threshold-network/ci/actions/npm-version-bump@20b35345d276a3c7365e3829b8078387a7c9dccb
with:
work-dir: ./solidity
environment: dev
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/npm-typescript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
run:
working-directory: ./typescript
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: "22.x"
registry-url: "https://registry.npmjs.org"
Expand Down Expand Up @@ -45,7 +45,7 @@ jobs:

- name: Bump up package version
id: npm-version-bump
uses: keep-network/npm-version-bump@v2
uses: threshold-network/ci/actions/npm-version-bump@20b35345d276a3c7365e3829b8078387a7c9dccb
with:
work-dir: ./typescript
environment: dev
Expand Down
Loading