Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve e2e CI test runtime #229

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
Draft
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
14 changes: 11 additions & 3 deletions .github/actions/setup-go/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
name: 'Setup the Go environment'
description: 'Installs go and restores/saves the build/module cache'
inputs:
git-dir:
description: "Git repository directory (for mtime-restoration). Note that this requires cloning the repo's full history"
required: false
default: '.'
runs:
using: "composite"
steps:
Expand All @@ -17,9 +22,12 @@ runs:
# Restore original modification time of files based on the date of the most
# recent commit that modified them as mtimes affect the Go test cache.
# See https://github.com/golang/go/issues/58571 for details
- name: Restore modification time of checkout files
uses: chetan/git-restore-mtime-action@075f9bc9d159805603419d50f794bd9f33252ebe

# Note that this requires checking out the repos with fetch-depth: 0
- if: inputs.git-dir != ''
name: Restore modification time of checkout files
uses: chetan/git-restore-mtime-action@301991bb840275c304501780b55c4cc0ba7450ba
with:
working-directory: ${{ inputs.git-dir }}

# KEY_PREFIX must uniquely identify the specific instance of a job executing.
- shell: bash
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/e2e.yml → .github/workflows/system-test.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: Soroban Tools e2e
name: System test

on:
push:
branches: [ main, release/** ]
pull_request:

jobs:
integration:
name: System tests
test:
name: "Test"
strategy:
matrix:
scenario-filter: [ "^TestDappDevelop$/^.*$" ]
Expand Down Expand Up @@ -86,7 +86,11 @@ jobs:
repository: ${{ env.SYSTEM_TEST_JS_STELLAR_SDK_GH_REPO }}
ref: ${{ env.SYSTEM_TEST_JS_STELLAR_SDK_GH_REF }}
path: system-test/js-stellar-sdk
- run: rustup update
- uses: stellar/actions/rust-cache@main
- uses: ./soroban-rpc/.github/actions/setup-go
with:
git-dir: ./soroban-rpc/
- name: Build system test with component versions
run: |
cd $GITHUB_WORKSPACE/system-test
Expand Down
Loading