-
Notifications
You must be signed in to change notification settings - Fork 13
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 #1982 from iotaledger/develop
Merge develop into update-rpc
- Loading branch information
Showing
1,590 changed files
with
30,286 additions
and
78,075 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
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
Validating CODEOWNERS rules …
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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -11,6 +11,9 @@ runs: | |
with: | ||
fetch-depth: 0 | ||
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # [email protected] | ||
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # [email protected] | ||
with: | ||
node-version: "20" | ||
- id: changes | ||
name: Detect changes | ||
shell: bash | ||
|
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: Docs spellcheck and linting | ||
|
||
on: workflow_call | ||
|
||
jobs: | ||
spelling: | ||
name: Lint documentation | ||
runs-on: [self-hosted] | ||
|
||
steps: | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 | ||
- name: Spell Check Docs | ||
uses: crate-ci/[email protected] | ||
with: | ||
files: ./docs/content |
10 changes: 1 addition & 9 deletions
10
.github/workflows/docusaurus.yml → .github/workflows/_docusaurus.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
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,87 @@ | ||
name: TS End-to-end Tests | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
isRust: | ||
type: boolean | ||
required: true | ||
isExplorer: | ||
type: boolean | ||
required: true | ||
isTypescriptSDK: | ||
type: boolean | ||
required: true | ||
isWallet: | ||
type: boolean | ||
required: true | ||
isGraphQlTransport: | ||
type: boolean | ||
required: true | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
# Run e2e test against localnet built on the develop branch | ||
localnet: | ||
name: Localnet | ||
if: inputs.isExplorer || inputs.isTypescriptSDK || inputs.isWallet || inputs.isRust | ||
runs-on: self-hosted | ||
services: | ||
postgres: | ||
image: postgres | ||
env: | ||
POSTGRES_USER: postgres | ||
POSTGRES_PASSWORD: postgrespw | ||
POSTGRES_DB: iota_indexer_v2 | ||
POSTGRES_HOST_AUTH_METHOD: trust | ||
options: >- | ||
--health-cmd pg_isready | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 5 | ||
ports: | ||
- 5432:5432 | ||
steps: | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 | ||
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # [email protected] | ||
- run: cargo build --bin iota-test-validator --bin iota --profile dev | ||
- name: Install Nodejs | ||
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # [email protected] | ||
with: | ||
node-version: "20" | ||
cache: "pnpm" | ||
- name: Install dependencies | ||
run: pnpm install --frozen-lockfile | ||
- name: Install Playwright Browsers | ||
run: pnpm --filter iota-explorer playwright install --with-deps chromium | ||
|
||
- name: Set env | ||
run: | | ||
echo "VITE_IOTA_BIN=$PWD/target/debug/iota" >> $GITHUB_ENV | ||
echo "E2E_RUN_LOCAL_NET_CMD=(RUST_LOG=info RUST_BACKTRACE=1 $(echo $PWD/target/debug/iota-test-validator) --with-indexer --pg-port 5432 --pg-db-name iota_indexer_v2 --graphql-host 127.0.0.1 --graphql-port 9125)" >> $GITHUB_ENV | ||
- name: Run TS SDK e2e tests | ||
if: inputs.isTypescriptSDK || inputs.isRust | ||
run: pnpm dlx concurrently --kill-others --success command-1 "$E2E_RUN_LOCAL_NET_CMD" 'pnpm --filter @iota/iota-sdk test:e2e' | ||
|
||
- name: Run RPC/GraphQL compatibility e2e tests | ||
if: inputs.isGraphQlTransport || inputs.isRust | ||
run: pnpm dlx concurrently --kill-others --success command-1 "$E2E_RUN_LOCAL_NET_CMD" 'pnpm --filter @iota/graphql-transport test:e2e' | ||
|
||
- name: Build explorer | ||
if: ${{ inputs.isTypescriptSDK || inputs.isExplorer || inputs.isRust}} | ||
run: pnpm turbo --filter=iota-explorer build | ||
|
||
- name: Run Explorer e2e tests | ||
# need to run Explorer e2e when its upstream(TS SDK and Rust) or itself is changed | ||
if: ${{ inputs.isTypescriptSDK || inputs.isExplorer || inputs.isRust}} | ||
run: pnpm --filter iota-explorer playwright test | ||
- uses: actions/upload-artifact@v3 | ||
if: always() | ||
with: | ||
name: playwright-report-explorer | ||
path: apps/explorer/playwright-report/ | ||
retention-days: 30 |
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: Execution cut | ||
|
||
on: workflow_call | ||
|
||
jobs: | ||
execution-cut: | ||
name: cutting a new execution layer | ||
runs-on: [self-hosted] | ||
steps: | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 | ||
- name: Install cargo-hakari, and cache the binary | ||
uses: baptiste0928/cargo-install@1cd874a5478fdca35d868ccc74640c5aabbb8f1b # [email protected] | ||
with: | ||
crate: cargo-hakari | ||
locked: true | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 | ||
- name: Make cut | ||
run: ./scripts/execution_layer.py cut for_ci_test | ||
- name: Check execution builds | ||
run: cargo build -p iota-execution |
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,40 @@ | ||
name: Rust lints | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
isRust: | ||
type: boolean | ||
|
||
jobs: | ||
rustfmt: | ||
if: always() && inputs.isRust | ||
runs-on: [self-hosted] | ||
steps: | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 | ||
- name: Install latest nightly | ||
run: rustup toolchain install nightly --component rustfmt --allow-downgrade | ||
- name: Check Rust formatting | ||
run: | | ||
cargo +nightly ci-fmt-external | ||
cargo-deny: | ||
if: always() && inputs.isRust | ||
name: cargo-deny (advisories, licenses, bans, ...) | ||
runs-on: [self-hosted] | ||
steps: | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 | ||
- uses: EmbarkStudios/cargo-deny-action@v1 | ||
|
||
clippy: | ||
if: always() && inputs.isRust | ||
needs: | ||
- rustfmt | ||
- cargo-deny | ||
runs-on: [self-hosted] | ||
steps: | ||
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 | ||
|
||
# See '.cargo/config' for list of enabled/disabled clippy lints | ||
- name: Check Clippy Lints | ||
run: cargo ci-clippy-external |
Oops, something went wrong.