Skip to content

Deployment artifacts for solidity/v1.6.0 release #3602

Deployment artifacts for solidity/v1.6.0 release

Deployment artifacts for solidity/v1.6.0 release #3602

Workflow file for this run

name: TypeScript bindings
on:
schedule:
- cron: "0 0 * * *"
push:
branches:
- main
paths:
- "typescript/**"
pull_request:
workflow_dispatch:
inputs:
environment:
description: "Environment (network) for workflow execution, e.g. `sepolia`"
required: true
upstream_builds:
description: "Upstream builds"
required: false
upstream_ref:
description: "Git reference to checkout (e.g. branch name)"
required: false
default: "main"
jobs:
typescript-detect-changes:
runs-on: ubuntu-latest
outputs:
path-filter: ${{ steps.filter.outputs.path-filter }}
steps:
- uses: actions/checkout@v3
if: github.event_name == 'pull_request'
- uses: dorny/paths-filter@v2
if: github.event_name == 'pull_request'
id: filter
with:
filters: |
path-filter:
- './typescript/**'
typescript-build-and-test:
needs: typescript-detect-changes
if: |
github.event_name != 'pull_request'
|| needs.typescript-detect-changes.outputs.path-filter == 'true'
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./typescript
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "18.x"
cache: "yarn"
cache-dependency-path: typescript/yarn.lock
# We need this step because the `@keep-network/tbtc-v2` which we update in
# next step has an indirect dependency to `@summa-tx/relay-sol@2.0.2`
# package, which downloads one of its sub-dependencies via unathenticated
# `git://` protocol. That protocol is no longer supported. Thanks to this
# step `https://` is used instead of `git://`.
- name: Configure git to don't use unauthenticated protocol
run: git config --global url."https://".insteadOf git://
- name: Install dependencies
run: yarn install
- name: Build
run: yarn build
- name: Tests
run: yarn test
typescript-format:
needs: typescript-detect-changes
if: |
github.event_name == 'push'
|| needs.typescript-detect-changes.outputs.path-filter == 'true'
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./typescript
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "18.x"
cache: "yarn"
cache-dependency-path: typescript/yarn.lock
# We need this step because the `@keep-network/tbtc-v2` which we update in
# next step has an indirect dependency to `@summa-tx/relay-sol@2.0.2`
# package, which downloads one of its sub-dependencies via unathenticated
# `git://` protocol. That protocol is no longer supported. Thanks to this
# step `https://` is used instead of `git://`.
- name: Configure git to don't use unauthenticated protocol
run: git config --global url."https://".insteadOf git://
- name: Install dependencies
run: yarn install
- name: Check formatting
run: yarn format
typescript-docs:
needs: typescript-detect-changes
if: |
github.event_name == 'push'
|| needs.typescript-detect-changes.outputs.path-filter == 'true'
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./typescript
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "18.x"
cache: "yarn"
cache-dependency-path: typescript/yarn.lock
- name: Configure git to don't use unauthenticated protocol
run: git config --global url."https://".insteadOf git://
- name: Install dependencies
run: yarn install
- name: Build
run: yarn build
- name: Generate docs
run: yarn docs
- name: Check docs up to date
run: git diff --exit-code || exit 1