Skip to content
Open
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
11 changes: 1 addition & 10 deletions .github/workflows/code-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,21 +179,12 @@ jobs:
uses: actions-rs/cargo@9e120dd99b0fbad1c065f686657e914e76bd7b72 # Version 1.0.1
with:
command: nextest
# The Cucumber runners need node binaries and are run locally for now.
# The Cucumber runners need node binaries and have their own workflow.
args: >-
run --workspace --locked --lib --bins --examples --tests --retries 2
--all-features --no-fail-fast
--exclude logos-blockchain-zone-tests --exclude logos-blockchain-sql-tests

# Include the support libraries without invoking their Cucumber runners.
- name: Run client test support unit tests
uses: actions-rs/cargo@9e120dd99b0fbad1c065f686657e914e76bd7b72 # Version 1.0.1
with:
command: nextest
args: >-
run --locked --lib --retries 2 --no-fail-fast
-p logos-blockchain-zone-tests -p logos-blockchain-sql-tests

# Stable required check for nextest unit tests.
#
# On pull requests, this job succeeds only when both nextest unit
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/cucumber-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,26 +54,26 @@ jobs:
with:
ref: ${{ github.sha }}

# Every node crate in `Cargo.toml` is pinned to one revision; the node
# Every node crate in `Cargo.toml` is pinned to one release tag; the node
# binary must come from the same one.
- name: Read the pinned node revision
- name: Read the pinned node release
id: node
run: |
rev="$(sed -nE 's/^lb-core += \{.*rev = "([0-9a-f]{40})".*$/\1/p' Cargo.toml)"
if [ -z "$rev" ]; then
echo "could not read the pinned node revision from Cargo.toml" >&2
tag="$(sed -nE 's/^lb-core += \{.*tag = "([^"]+)".*$/\1/p' Cargo.toml)"
if [ -z "$tag" ]; then
echo "could not read the pinned node release from Cargo.toml" >&2
exit 1
fi
echo "rev=$rev" >> "$GITHUB_OUTPUT"
echo "tag=$tag" >> "$GITHUB_OUTPUT"

# `--features testing` matches the node harness's own node build.
- name: Build the node binary at the pinned revision
- name: Build the node binary at the pinned release
env:
CARGO_INCREMENTAL: 0 # Disable incremental compilation
run: >-
cargo install --locked
--git https://github.com/logos-blockchain/logos-blockchain.git
--rev "${{ steps.node.outputs.rev }}"
--tag "${{ steps.node.outputs.tag }}"
--features testing
--target-dir target/node-target
--root target/node
Expand Down
Loading
Loading